mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-27 16:20:00 +00:00
Don't test for the 0 character on the wrong half of the UCS2-LE char.
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
4d70bbd894
commit
000261ca88
2
ucs2.h
2
ucs2.h
@ -106,8 +106,6 @@ count_ucs2_strings(UINT8 *data, UINTN data_size)
|
|||||||
if (data[i] != 0)
|
if (data[i] != 0)
|
||||||
return 0;
|
return 0;
|
||||||
} else if (data[i] == 0) {
|
} else if (data[i] == 0) {
|
||||||
if (i+1 >= data_size || data[i+1] != 0)
|
|
||||||
return 0;
|
|
||||||
last_nul_pos = i;
|
last_nul_pos = i;
|
||||||
num_nuls++;
|
num_nuls++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user