regedit: Do not import the line if a hex data type has a "0x" prefix.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Hugh McMaster 2017-07-05 13:33:12 +00:00 committed by Alexandre Julliard
parent 1a4c3e5d28
commit b811b16694
2 changed files with 2 additions and 2 deletions

View File

@ -363,7 +363,7 @@ static BOOL parse_data_type(struct parser *parser, WCHAR **line)
WCHAR *end;
DWORD val;
if (!**line)
if (!**line || tolowerW((*line)[1]) == 'x')
return FALSE;
/* "hex(xx):" is special */

View File

@ -467,7 +467,7 @@ static void test_basic_import(void)
verify_reg(hkey, "Wine13g", 0x7fffffff, "Value", 6, 0);
verify_reg(hkey, "Wine13h", 0xffffffff, "Value", 6, 0);
verify_reg_nonexist(hkey, "Wine13i");
todo_wine verify_reg_nonexist(hkey, "Wine13j");
verify_reg_nonexist(hkey, "Wine13j");
verify_reg_nonexist(hkey, "Wine13k");
exec_import_str("REGEDIT4\n\n"