Commit 1f08ee24 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Allow the deletion of registry keys beginning with a lowercase 'H'.

parent f535341d
......@@ -624,7 +624,7 @@ static WCHAR *delete_key_state(struct parser *parser, WCHAR *pos)
{
WCHAR *p = pos;
if (*p == 'H')
if (*p == 'H' || *p == 'h')
delete_registry_key(p);
set_state(parser, LINE_START);
......
......@@ -1238,13 +1238,13 @@ static void test_key_creation_and_deletion(void)
"[-HKEY_current_USER\\" KEY_BASE "\\sUBKEY3A]\n\n"
"[-hKeY_cUrReNt_UsEr\\" KEY_BASE "\\sUbKeY3B]\n\n");
verify_key_nonexist(hkey, "Subkey3a");
todo_wine verify_key_nonexist(hkey, "Subkey3b");
verify_key_nonexist(hkey, "Subkey3b");
lr = RegCloseKey(hkey);
ok(lr == ERROR_SUCCESS, "RegCloseKey failed: got %d, expected 0\n", lr);
lr = RegDeleteKeyA(HKEY_CURRENT_USER, KEY_BASE);
todo_wine ok(lr == ERROR_SUCCESS, "RegDeleteKeyA failed: got %d, expected 0\n", lr);
ok(lr == ERROR_SUCCESS, "RegDeleteKeyA failed: got %d, expected 0\n", lr);
}
static void test_value_deletion(void)
......@@ -1296,7 +1296,7 @@ static void test_value_deletion(void)
ok(lr == ERROR_SUCCESS, "RegCloseKey failed: got %d, expected 0\n", lr);
lr = RegDeleteKeyA(HKEY_CURRENT_USER, KEY_BASE);
todo_wine ok(lr == ERROR_SUCCESS, "RegDeleteKeyA failed: got %d, expected 0\n", lr);
ok(lr == ERROR_SUCCESS, "RegDeleteKeyA failed: got %d, expected 0\n", lr);
}
START_TEST(regedit)
......
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