[NTOSKRNL]

- Check that the caller passed a valid PDO pointer to IoOpenDeviceRegistryKey

svn path=/trunk/; revision=47827
This commit is contained in:
Cameron Gutman
2010-06-22 15:53:52 +00:00
parent 6d3e9528cf
commit b362a62a7e
+2
View File
@@ -3528,6 +3528,8 @@ IoOpenDeviceRegistryKey(IN PDEVICE_OBJECT DeviceObject,
else
{
DeviceNode = IopGetDeviceNode(DeviceObject);
if (!DeviceNode)
return STATUS_INVALID_DEVICE_REQUEST;
KeyNameLength += sizeof(EnumKeyName) - sizeof(UNICODE_NULL) +
DeviceNode->InstancePath.Length;
}