[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Mon, 15 Aug 2011 05:43:16 +0000 (05:43 +0000)
committerCameron Gutman <aicommander@gmail.com>
Mon, 15 Aug 2011 05:43:16 +0000 (05:43 +0000)
- Hack around a strange registry-related bug (we created the whole registry path previously but it won't let us open it without the correct volatile option) to fix devices enumerated via IoReportDetectedDevice

svn path=/trunk/; revision=53255

reactos/ntoskrnl/io/pnpmgr/pnpreport.c

index 94a20dc..b871889 100644 (file)
@@ -248,7 +248,8 @@ IoReportDetectedDevice(IN PDRIVER_OBJECT DriverObject,
     IopActionConfigureChildServices(DeviceNode, DeviceNode->Parent);
 
     /* Open a handle to the instance path key */
-    Status = IopCreateDeviceKeyPath(&DeviceNode->InstancePath, 0, &InstanceKey);
+    /* REG_OPTION_VOLATILE is a HACK!!! */
+    Status = IopCreateDeviceKeyPath(&DeviceNode->InstancePath, REG_OPTION_VOLATILE, &InstanceKey);
     if (!NT_SUCCESS(Status))
         return Status;