mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[NTOSKRNL]
- Print a warning in several cases where a wait may fail in an unexpected way svn path=/trunk/; revision=57231
This commit is contained in:
parent
a757f3684e
commit
dae657d1a1
1 changed files with 7 additions and 0 deletions
|
@ -165,6 +165,7 @@ NtWaitForMultipleObjects(IN ULONG ObjectCount,
|
|||
{
|
||||
/* Fail, handle is invalid */
|
||||
Status = STATUS_INVALID_HANDLE;
|
||||
DPRINT1("Invalid handle passed to NtWaitForMultipleObjects\n");
|
||||
goto Quickie;
|
||||
}
|
||||
|
||||
|
@ -174,6 +175,7 @@ NtWaitForMultipleObjects(IN ULONG ObjectCount,
|
|||
{
|
||||
/* Unlock the entry and fail */
|
||||
ExUnlockHandleTableEntry(HandleTable, HandleEntry);
|
||||
DPRINT1("Handle does not have SYNCHRONIZE access\n");
|
||||
Status = STATUS_ACCESS_DENIED;
|
||||
goto Quickie;
|
||||
}
|
||||
|
@ -228,6 +230,7 @@ NtWaitForMultipleObjects(IN ULONG ObjectCount,
|
|||
{
|
||||
/* Fail */
|
||||
Status = STATUS_INVALID_PARAMETER_MIX;
|
||||
DPRINT1("Passed a duplicate object to NtWaitForMultipleObjects\n");
|
||||
goto Quickie;
|
||||
}
|
||||
}
|
||||
|
@ -417,6 +420,10 @@ NtWaitForSingleObject(IN HANDLE ObjectHandle,
|
|||
/* Dereference the Object */
|
||||
ObDereferenceObject(Object);
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINT1("Failed to reference the handle with status 0x%x\n", Status);
|
||||
}
|
||||
|
||||
/* Return the status */
|
||||
return Status;
|
||||
|
|
Loading…
Reference in a new issue