mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 14:48:37 +00:00
[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:
parent
be57c2b21b
commit
d0071adf97
|
@ -808,12 +808,13 @@ NtGetPlugPlayEvent(IN ULONG Reserved1,
|
||||||
DPRINT("Waiting for pnp notification event\n");
|
DPRINT("Waiting for pnp notification event\n");
|
||||||
Status = KeWaitForSingleObject(&IopPnpNotifyEvent,
|
Status = KeWaitForSingleObject(&IopPnpNotifyEvent,
|
||||||
UserRequest,
|
UserRequest,
|
||||||
KernelMode,
|
UserMode,
|
||||||
FALSE,
|
FALSE,
|
||||||
NULL);
|
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;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue