mirror of
https://github.com/reactos/reactos.git
synced 2026-05-23 15:50:29 +08:00
[NTOS:CM] Check for correct status from ZwQueryObject. CORE-15882
Fixes regression in ntdll_apitest:NtLoadUnloadKey from d570482bc7.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user