mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[NTOSKNRL]
Add a missing NULL check in IoShutdownSystem svn path=/trunk/; revision=56939
This commit is contained in:
parent
dd12f74611
commit
189a83fdde
1 changed files with 17 additions and 14 deletions
|
@ -167,11 +167,14 @@ IoShutdownSystem(IN ULONG Phase)
|
|||
NULL,
|
||||
&Event,
|
||||
&StatusBlock);
|
||||
Status = IoCallDriver(DeviceObject, Irp);
|
||||
if (Status == STATUS_PENDING)
|
||||
if (Irp)
|
||||
{
|
||||
/* Wait on the driver */
|
||||
KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL);
|
||||
Status = IoCallDriver(DeviceObject, Irp);
|
||||
if (Status == STATUS_PENDING)
|
||||
{
|
||||
/* Wait on the driver */
|
||||
KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove the flag */
|
||||
|
|
Loading…
Reference in a new issue