mirror of
https://github.com/reactos/wine.git
synced 2025-02-07 20:57:39 +00:00
Correct size check.
This commit is contained in:
parent
c8857c0786
commit
779f4d0019
@ -168,7 +168,7 @@ static lnk_string* load_string(int fd, int unicode)
|
||||
r = read( fd, &size, sizeof size );
|
||||
if (r != sizeof size)
|
||||
return NULL;
|
||||
if (size < sizeof size)
|
||||
if ( size == 0 )
|
||||
return NULL;
|
||||
|
||||
bytesize = size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user