Author: hbelusca Date: Mon Jun 19 19:50:49 2017 New Revision: 75138
URL: http://svn.reactos.org/svn/reactos?rev=75138&view=rev Log: [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
Modified: trunk/rostests/apitests/ntdll/NtLoadUnloadKey.c
Modified: trunk/rostests/apitests/ntdll/NtLoadUnloadKey.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/NtLoadUnloa... ============================================================================== --- trunk/rostests/apitests/ntdll/NtLoadUnloadKey.c [iso-8859-1] (original) +++ trunk/rostests/apitests/ntdll/NtLoadUnloadKey.c [iso-8859-1] Mon Jun 19 19:50:49 2017 @@ -524,6 +524,8 @@ 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"); @@ -536,6 +538,8 @@ { ok_ntstatus(Status, STATUS_KEY_DELETED); } + +#endif
/* The key handle should not be valid anymore */ Status = NtDeleteKey(KeyHandle);