From 76e269823724a4c70aeba235711a8eaed1e2d03d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 21 Oct 2018 23:09:32 +0200 Subject: [PATCH] [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 --- modules/rostests/apitests/ntdll/NtLoadUnloadKey.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c b/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c index ac4ec3493ea..eb5a8c462e2 100644 --- a/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c +++ b/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c @@ -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);