[PATCH] regedit: Do not use REG_NONE as the default data type if strtoulW() fails
Hugh McMaster
hugh.mcmaster at outlook.com
Thu Jun 8 08:13:39 CDT 2017
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
programs/regedit/regproc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/regedit/regproc.c b/programs/regedit/regproc.c
index 7bac6dc..ac72b94 100644
--- a/programs/regedit/regproc.c
+++ b/programs/regedit/regproc.c
@@ -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;
}
--
2.7.4
More information about the wine-patches
mailing list