diff --git a/rostests/apitests/ntdll/NtLoadUnloadKey.c b/rostests/apitests/ntdll/NtLoadUnloadKey.c index ed5c14a1017..b8339af8e58 100644 --- a/rostests/apitests/ntdll/NtLoadUnloadKey.c +++ b/rostests/apitests/ntdll/NtLoadUnloadKey.c @@ -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);