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:
Hugh McMaster 2017-06-08 13:13:39 +00:00 committed by Alexandre Julliard
parent 5669282e1d
commit afde1624ca
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}