[NTOSKRNL]

- Perform a user-mode wait in NtGetPlugPlayEvent and correctly allow a waiting thread to terminate
CORE-9489 #resolve

svn path=/trunk/; revision=67057
This commit is contained in:
Thomas Faber 2015-04-05 08:33:08 +00:00
parent be57c2b21b
commit d0071adf97

View file

@ -808,12 +808,13 @@ NtGetPlugPlayEvent(IN ULONG Reserved1,
DPRINT("Waiting for pnp notification event\n");
Status = KeWaitForSingleObject(&IopPnpNotifyEvent,
UserRequest,
KernelMode,
UserMode,
FALSE,
NULL);
if (!NT_SUCCESS(Status))
if (!NT_SUCCESS(Status) || Status == STATUS_USER_APC)
{
DPRINT1("KeWaitForSingleObject() failed (Status %lx)\n", Status);
DPRINT("KeWaitForSingleObject() failed (Status %lx)\n", Status);
ASSERT(Status == STATUS_USER_APC);
return Status;
}