Module: wine Branch: master Commit: afde1624cacc9b391805d0cec7889052b77315da URL: http://source.winehq.org/git/wine.git/?a=commit;h=afde1624cacc9b391805d0cec7... Author: Hugh McMaster <hugh.mcmaster(a)outlook.com> Date: Thu Jun 8 13:13:39 2017 +0000 regedit: Do not use REG_NONE as the default data type if strtoulW() fails. Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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; }