Commit 82fc4c8c authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg: Close any open registry keys before starting the key deletion process.

parent b7c838bf
......@@ -600,6 +600,8 @@ static WCHAR *delete_key_state(struct parser *parser, WCHAR *pos)
{
WCHAR *p = pos;
close_key(parser);
if (*p == 'H' || *p == 'h')
{
HKEY root;
......
......@@ -1746,7 +1746,7 @@ static void test_import(void)
"\"Wine46a\"=dword:12345678\n\n", &r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
verify_key_nonexist(hkey, "Subkey4a");
todo_wine verify_reg_nonexist(hkey, "Wine46a");
verify_reg_nonexist(hkey, "Wine46a");
test_import_str("REGEDIT4\n\n"
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n"
......@@ -3224,7 +3224,7 @@ static void test_unicode_import(void)
"\"Wine46a\"=dword:12345678\n\n", &r);
ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
verify_key_nonexist(hkey, "Subkey4a");
todo_wine verify_reg_nonexist(hkey, "Wine46a");
verify_reg_nonexist(hkey, "Wine46a");
test_import_wstr("\xef\xbb\xbfWindows Registry Editor Version 5.00\n\n"
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment