Commit 000261ca authored by Peter Jones's avatar Peter Jones

Don't test for the 0 character on the wrong half of the UCS2-LE char.

Signed-off-by: 's avatarPeter Jones <pjones@redhat.com>
parent 4d70bbd8
......@@ -106,8 +106,6 @@ count_ucs2_strings(UINT8 *data, UINTN data_size)
if (data[i] != 0)
return 0;
} else if (data[i] == 0) {
if (i+1 >= data_size || data[i+1] != 0)
return 0;
last_nul_pos = i;
num_nuls++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment