https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d3fa3b0ca2005fddc2eed…
commit d3fa3b0ca2005fddc2eeda221f76bdb75a56937f
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun May 5 17:56:10 2019 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun May 5 17:57:12 2019 +0200
[NTOS:CM] Check for correct status from ZwQueryObject. CORE-15882
Fixes regression in ntdll_apitest:NtLoadUnloadKey from d570482bc72.
---
ntoskrnl/config/cmhvlist.c | 2 +-
ntoskrnl/config/cmlazy.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/config/cmhvlist.c b/ntoskrnl/config/cmhvlist.c
index 8a4009303d..b9ebb8fd4e 100644
--- a/ntoskrnl/config/cmhvlist.c
+++ b/ntoskrnl/config/cmhvlist.c
@@ -178,7 +178,7 @@ CmpAddToHiveFileList(IN PCMHIVE Hive)
NULL,
0,
&Length);
- if (Status != STATUS_BUFFER_TOO_SMALL)
+ if (Status != STATUS_INFO_LENGTH_MISMATCH)
{
DPRINT1("CmpAddToHiveFileList: Hive file name size query failed, status
= 0x%08lx\n", Status);
goto Quickie;
diff --git a/ntoskrnl/config/cmlazy.c b/ntoskrnl/config/cmlazy.c
index 9376076652..a8526e5b27 100644
--- a/ntoskrnl/config/cmlazy.c
+++ b/ntoskrnl/config/cmlazy.c
@@ -302,7 +302,7 @@ CmpCmdHiveOpen(IN POBJECT_ATTRIBUTES FileAttributes,
NULL,
0,
&Length);
- if (Status != STATUS_BUFFER_TOO_SMALL)
+ if (Status != STATUS_INFO_LENGTH_MISMATCH)
{
DPRINT1("CmpCmdHiveOpen(): Root directory handle object name size query
failed, Status = 0x%08lx\n", Status);
return Status;