mirror of
https://github.com/reactos/reactos.git
synced 2024-06-27 16:31:30 +00:00
[NTOS:CM] Check for correct status from ZwQueryObject. CORE-15882
Fixes regression in ntdll_apitest:NtLoadUnloadKey from d570482bc7
.
This commit is contained in:
parent
b5e6280a72
commit
d3fa3b0ca2
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue