mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[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 svn path=/trunk/; revision=75138
This commit is contained in:
parent
87cb029a9a
commit
b17ce9c805
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue