From: Eric Kohl Date: Sat, 22 Sep 2018 09:20:27 +0000 (+0200) Subject: [NTOSKRNL] IoGetDeviceProperty: Add support for the DevicePropertyRemovalPolicy... X-Git-Tag: 0.4.12-dev~746 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=e32a2cc026fe4199ade1de703cb6ed133b15c046 [NTOSKRNL] IoGetDeviceProperty: Add support for the DevicePropertyRemovalPolicy property. This could probably fix CORE-15068. --- diff --git a/ntoskrnl/io/pnpmgr/pnpmgr.c b/ntoskrnl/io/pnpmgr/pnpmgr.c index 5456b8aa68b..010a997b52e 100644 --- a/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -4180,6 +4180,9 @@ IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject, *ResultLength -= sizeof(OBJECT_NAME_INFORMATION); break; + case DevicePropertyRemovalPolicy: + PIP_RETURN_DATA(sizeof(UCHAR), &DeviceNode->RemovalPolicy); + /* Handle the registry-based properties */ case DevicePropertyUINumber: PIP_REGISTRY_DATA(REGSTR_VAL_UI_NUMBER, REG_DWORD); @@ -4206,8 +4209,6 @@ IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject, case DevicePropertyContainerID: //PIP_REGISTRY_DATA(REGSTR_VAL_CONTAINERID, REG_SZ); // Win7 PIP_UNIMPLEMENTED(); - case DevicePropertyRemovalPolicy: - PIP_UNIMPLEMENTED(); break; case DevicePropertyInstallState: PIP_REGISTRY_DATA(REGSTR_VAL_CONFIGFLAGS, REG_DWORD);