mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
[NTOS:IO] Fix result length for DevicePropertyRemovalPolicy request
in IoGetDeviceProperty. Classpnp expects it to be sizeof(DEVICE_REMOVAL_POLICY) see ClasspInitializeHotplugInfo in classpnp.sys CORE-6264
This commit is contained in:
parent
50605143f6
commit
3d046e0ed2
|
@ -4240,6 +4240,7 @@ IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject,
|
||||||
GUID BusTypeGuid;
|
GUID BusTypeGuid;
|
||||||
POBJECT_NAME_INFORMATION ObjectNameInfo = NULL;
|
POBJECT_NAME_INFORMATION ObjectNameInfo = NULL;
|
||||||
BOOLEAN NullTerminate = FALSE;
|
BOOLEAN NullTerminate = FALSE;
|
||||||
|
DEVICE_REMOVAL_POLICY Policy;
|
||||||
|
|
||||||
DPRINT("IoGetDeviceProperty(0x%p %d)\n", DeviceObject, DeviceProperty);
|
DPRINT("IoGetDeviceProperty(0x%p %d)\n", DeviceObject, DeviceProperty);
|
||||||
|
|
||||||
|
@ -4357,7 +4358,9 @@ IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DevicePropertyRemovalPolicy:
|
case DevicePropertyRemovalPolicy:
|
||||||
PIP_RETURN_DATA(sizeof(UCHAR), &DeviceNode->RemovalPolicy);
|
|
||||||
|
Policy = DeviceNode->RemovalPolicy;
|
||||||
|
PIP_RETURN_DATA(sizeof(Policy), &Policy);
|
||||||
|
|
||||||
/* Handle the registry-based properties */
|
/* Handle the registry-based properties */
|
||||||
case DevicePropertyUINumber:
|
case DevicePropertyUINumber:
|
||||||
|
|
Loading…
Reference in a new issue