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>
This commit is contained in:
parent
1a4c3e5d28
commit
b811b16694
|
@ -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 */
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue