Commit 6f0056d0 authored by David Gay's avatar David Gay Committed by Alexandre Julliard

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

of the registry.
parent 71bdc7c8
...@@ -1501,7 +1501,7 @@ static LPKEYSTRUCT _w95_processKey ( LPKEYSTRUCT lpkey, ...@@ -1501,7 +1501,7 @@ static LPKEYSTRUCT _w95_processKey ( LPKEYSTRUCT lpkey,
curdata += 0x20; curdata += 0x20;
#define XREAD(whereto,len) \ #define XREAD(whereto,len) \
if ((curdata + len) <end) {\ if ((curdata + len) <= end) {\
memcpy(whereto,curdata,len);\ memcpy(whereto,curdata,len);\
curdata+=len;\ curdata+=len;\
bytesread+=len;\ bytesread+=len;\
......
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