[NTDLL_APITEST]: Temporarily disable part of the NtLoad/UnloadKey test (related to force-unload a hive while some handles to subkeys are still opened), because this creates memory corruptions, due to the fact we currently don't perform force-unloads correctly.

CORE-13448

svn path=/trunk/; revision=75138
This commit is contained in:
Hermès Bélusca-Maïto 2017-06-19 19:50:49 +00:00
parent 87cb029a9a
commit b17ce9c805

View file

@ -524,6 +524,8 @@ 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");
@ -537,6 +539,8 @@ 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);