Author: cgutman Date: Tue Jun 22 15:53:52 2010 New Revision: 47827
URL: http://svn.reactos.org/svn/reactos?rev=47827&view=rev Log: [NTOSKRNL] - Check that the caller passed a valid PDO pointer to IoOpenDeviceRegistryKey
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c... ============================================================================== --- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Tue Jun 22 15:53:52 2010 @@ -3528,6 +3528,8 @@ else { DeviceNode = IopGetDeviceNode(DeviceObject); + if (!DeviceNode) + return STATUS_INVALID_DEVICE_REQUEST; KeyNameLength += sizeof(EnumKeyName) - sizeof(UNICODE_NULL) + DeviceNode->InstancePath.Length; }