regedit: Do not use REG_NONE as the default data type if strtoulW() fails.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5669282e1d
commit
afde1624ca
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue