advapi32/tests: Free subkey.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2018-05-03 11:59:34 -07:00 committed by Alexandre Julliard
parent 8e29f491c4
commit 54bcff15ef
1 changed files with 2 additions and 0 deletions

View File

@ -3567,6 +3567,7 @@ static void test_RegNotifyChangeKeyValue(void)
ok(dwret == WAIT_OBJECT_0, "expected WAIT_OBJECT_0, got %u\n", dwret);
RegDeleteKeyA(key, "SubKey");
RegCloseKey(subkey);
RegCloseKey(key);
/* test different thread without REG_NOTIFY_THREAD_AGNOSTIC */
@ -3608,6 +3609,7 @@ static void test_RegNotifyChangeKeyValue(void)
RegDeleteKeyA(key, "SubKey");
RegDeleteKeyA(key, "");
RegCloseKey(subkey);
RegCloseKey(key);
CloseHandle(event);
}