mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +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,
|
NULL,
|
||||||
&Event,
|
&Event,
|
||||||
&StatusBlock);
|
&StatusBlock);
|
||||||
Status = IoCallDriver(DeviceObject, Irp);
|
if (Irp)
|
||||||
if (Status == STATUS_PENDING)
|
|
||||||
{
|
{
|
||||||
/* Wait on the driver */
|
Status = IoCallDriver(DeviceObject, Irp);
|
||||||
KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL);
|
if (Status == STATUS_PENDING)
|
||||||
|
{
|
||||||
|
/* Wait on the driver */
|
||||||
|
KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove the flag */
|
/* Remove the flag */
|
||||||
|
|
Loading…
Reference in a new issue