Correct size check.

This commit is contained in:
Steven Edwards 2005-08-11 10:33:29 +00:00 committed by Alexandre Julliard
parent c8857c0786
commit 779f4d0019
1 changed files with 1 additions and 1 deletions

View File

@ -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;