https://git.reactos.org/?p=reactos.git;a=commitdiff;h=76e269823724a4c70aeba235711a8eaed1e2d03d

commit 76e269823724a4c70aeba235711a8eaed1e2d03d
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Sun Oct 21 23:09:32 2018 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Mon Oct 22 00:05:21 2018 +0200

    [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 ac4ec3493e..eb5a8c462e 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);

Reply via email to