Commit 779f4d00 authored by Steven Edwards's avatar Steven Edwards Committed by Alexandre Julliard

Correct size check.

parent c8857c07
......@@ -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;
......
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