diff --git a/reactos/ntoskrnl/io/pnpmgr/plugplay.c b/reactos/ntoskrnl/io/pnpmgr/plugplay.c index 97373acd6f7..86f3f5f63a0 100644 --- a/reactos/ntoskrnl/io/pnpmgr/plugplay.c +++ b/reactos/ntoskrnl/io/pnpmgr/plugplay.c @@ -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; }