mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
regedit: Close any open registry keys before starting the key deletion process.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
484f88080d
commit
60e771e686
2 changed files with 4 additions and 2 deletions
|
@ -708,6 +708,8 @@ static WCHAR *delete_key_state(struct parser *parser, WCHAR *pos)
|
|||
{
|
||||
WCHAR *p = pos;
|
||||
|
||||
close_key(parser);
|
||||
|
||||
if (*p == 'H' || *p == 'h')
|
||||
delete_registry_key(p);
|
||||
|
||||
|
|
|
@ -3016,7 +3016,7 @@ static void test_key_creation_and_deletion(void)
|
|||
"[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey4a]\n"
|
||||
"\"Wine1a\"=dword:12345678\n\n");
|
||||
verify_key_nonexist(hkey, "Subkey4a");
|
||||
todo_wine verify_reg_nonexist(hkey, "Wine1a");
|
||||
verify_reg_nonexist(hkey, "Wine1a");
|
||||
|
||||
exec_import_str("REGEDIT4\n\n"
|
||||
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n"
|
||||
|
@ -3166,7 +3166,7 @@ static void test_key_creation_and_deletion_unicode(void)
|
|||
"[-HKEY_CURRENT_USER\\" KEY_BASE "\\Subkey4a]\n"
|
||||
"\"Wine1a\"=dword:12345678\n\n");
|
||||
verify_key_nonexist(hkey, "Subkey4a");
|
||||
todo_wine verify_reg_nonexist(hkey, "Wine1a");
|
||||
verify_reg_nonexist(hkey, "Wine1a");
|
||||
|
||||
exec_import_wstr("\xef\xbb\xbfWindows Registry Editor Version 5.00\n\n"
|
||||
"[HKEY_CURRENT_USER\\" KEY_BASE "]\n\n"
|
||||
|
|
Loading…
Reference in a new issue