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);