Fixed crash due to a value of name length 0, value length 0 at the end

of the registry.
oldstable
David Gay 1999-04-11 12:00:15 +00:00 committed by Alexandre Julliard
parent 71bdc7c851
commit 6f0056d0bd
1 changed files with 1 additions and 1 deletions

View File

@ -1501,7 +1501,7 @@ static LPKEYSTRUCT _w95_processKey ( LPKEYSTRUCT lpkey,
curdata += 0x20;
#define XREAD(whereto,len) \
if ((curdata + len) <end) {\
if ((curdata + len) <= end) {\
memcpy(whereto,curdata,len);\
curdata+=len;\
bytesread+=len;\