Add RegUnLoadKey test.

This commit is contained in:
James Hawkins 2005-04-19 09:47:10 +00:00 committed by Alexandre Julliard
parent 0e21f376da
commit 89f67d7b09
1 changed files with 11 additions and 1 deletions

View File

@ -382,7 +382,16 @@ static void test_reg_load_key()
ret = RegOpenKey(HKEY_LOCAL_MACHINE, "Test", &hkHandle);
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
delete_key(hkHandle);
RegCloseKey(hkHandle);
}
static void test_reg_unload_key()
{
DWORD ret;
ret = RegUnLoadKey(HKEY_LOCAL_MACHINE, "Test");
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %ld\n", ret);
DeleteFile("saved_key");
}
@ -397,6 +406,7 @@ START_TEST(registry)
test_reg_delete_key();
test_reg_save_key();
test_reg_load_key();
test_reg_unload_key();
/* cleanup */
delete_key( hkey_main );