Author: cgutman
Date: Mon Sep 3 22:19:05 2012
New Revision: 57231
URL:
http://svn.reactos.org/svn/reactos?rev=57231&view=rev
Log:
[NTOSKRNL]
- Print a warning in several cases where a wait may fail in an unexpected way
Modified:
trunk/reactos/ntoskrnl/ob/obwait.c
Modified: trunk/reactos/ntoskrnl/ob/obwait.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obwait.c?rev=5…
==============================================================================
--- trunk/reactos/ntoskrnl/ob/obwait.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/obwait.c [iso-8859-1] Mon Sep 3 22:19:05 2012
@@ -165,6 +165,7 @@
{
/* Fail, handle is invalid */
Status = STATUS_INVALID_HANDLE;
+ DPRINT1("Invalid handle passed to NtWaitForMultipleObjects\n");
goto Quickie;
}
@@ -174,6 +175,7 @@
{
/* 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 @@
{
/* Fail */
Status = STATUS_INVALID_PARAMETER_MIX;
+ DPRINT1("Passed a duplicate object to
NtWaitForMultipleObjects\n");
goto Quickie;
}
}
@@ -417,6 +420,10 @@
/* Dereference the Object */
ObDereferenceObject(Object);
}
+ else
+ {
+ DPRINT1("Failed to reference the handle with status 0x%x\n", Status);
+ }
/* Return the status */
return Status;