[NTDLL_APITEST] Re-enable the part of the NtLoad/UnloadKey test related to force-unload a hive with opened sub-key handles.

Effectively reverts b17ce9c8 (r75138).

CORE-13448
This commit is contained in:
Hermès Bélusca-Maïto 2018-10-21 23:09:32 +02:00
parent d61c00c252
commit 76e2698237
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -520,8 +520,6 @@ START_TEST(NtLoadUnloadKey)
Status = NtFlushKey(KeyHandle);
ok_ntstatus(Status, STATUS_SUCCESS);
#if 0 // Currently, leads to memory corruption !!!!!
/* Force-unmount the hive, with the handle key still opened */
Status = DisconnectRegistry(NULL, RegistryHives[0].RegMountPoint, REG_FORCE_UNLOAD);
DPRINT1("Force-unmounting '%S' %s\n", RegistryHives[0].RegMountPoint, NT_SUCCESS(Status) ? "succeeded" : "failed");
@ -535,8 +533,6 @@ START_TEST(NtLoadUnloadKey)
ok_ntstatus(Status, STATUS_KEY_DELETED);
}
#endif
/* The key handle should not be valid anymore */
Status = NtDeleteKey(KeyHandle);
ok_ntstatus(Status, STATUS_SUCCESS);