mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 04:13:35 +00:00
[NTOSKRNL]
- Check that the caller passed a valid PDO pointer to IoOpenDeviceRegistryKey svn path=/trunk/; revision=47827
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user