From 779f4d001946bf7793b997b5e8a85d8e7cac2240 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Thu, 11 Aug 2005 10:33:29 +0000 Subject: [PATCH] Correct size check. --- tools/winedump/lnk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winedump/lnk.c b/tools/winedump/lnk.c index 056354f982f..8a1885a2c90 100644 --- a/tools/winedump/lnk.c +++ b/tools/winedump/lnk.c @@ -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;