Commit afde1624 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Do not use REG_NONE as the default data type if strtoulW() fails.

parent 5669282e
......@@ -239,7 +239,7 @@ static DWORD getDataType(LPWSTR *lpValue, DWORD* parse_type)
/* "hex(xx):" is special */
type = (int)strtoulW( *lpValue , &end, 16 );
if (**lpValue=='\0' || *end!=')' || *(end+1)!=':') {
type=REG_NONE;
type = REG_UNKNOWN_TYPE;
} else {
*lpValue = end + 2;
}
......
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