mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
- Minor correction to IopGetSystemPowerDeviceObject.
svn path=/trunk/; revision=8817
This commit is contained in:
parent
9d3fa4fe4b
commit
72bf171b1b
1 changed files with 9 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: pnpmgr.c,v 1.25 2004/03/18 16:43:56 navaraf Exp $
|
||||
/* $Id: pnpmgr.c,v 1.26 2004/03/20 17:34:25 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -240,8 +240,8 @@ IopGetSystemPowerDeviceObject(PDEVICE_OBJECT *DeviceObject)
|
|||
{
|
||||
KIRQL OldIrql;
|
||||
|
||||
assert(PopSystemPowerDeviceNode);
|
||||
|
||||
if (PopSystemPowerDeviceNode)
|
||||
{
|
||||
KeAcquireSpinLock(&IopDeviceTreeLock, &OldIrql);
|
||||
*DeviceObject = PopSystemPowerDeviceNode->Pdo;
|
||||
KeReleaseSpinLock(&IopDeviceTreeLock, OldIrql);
|
||||
|
@ -249,6 +249,9 @@ IopGetSystemPowerDeviceObject(PDEVICE_OBJECT *DeviceObject)
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
* DESCRIPTION
|
||||
* Creates a device node
|
||||
|
|
Loading…
Reference in a new issue