mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 02:41:22 +00:00
[NTOS:PNP] Check if APCs are enabled before waiting inside IopSynchronousCall
This commit is contained in:
parent
9eafb2971f
commit
e3198fb644
1 changed files with 2 additions and 0 deletions
|
@ -599,6 +599,8 @@ IopSynchronousCall(IN PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
/* Call the driver */
|
||||
Status = IoCallDriver(TopDeviceObject, Irp);
|
||||
/* Otherwise we may get stuck here or have IoStatusBlock not populated */
|
||||
ASSERT(!KeAreAllApcsDisabled());
|
||||
if (Status == STATUS_PENDING)
|
||||
{
|
||||
/* Wait for it */
|
||||
|
|
Loading…
Reference in a new issue