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

Alexandre Julliard julliard at winehq.org
Thu Jun 8 15:54:57 CDT 2017


Module: wine
Branch: master
Commit: afde1624cacc9b391805d0cec7889052b77315da
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=afde1624cacc9b391805d0cec7889052b77315da

Author: Hugh McMaster <hugh.mcmaster at 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 at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
             }




More information about the wine-cvs mailing list