[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Sat, 21 Aug 2010 22:08:00 +0000 (22:08 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 21 Aug 2010 22:08:00 +0000 (22:08 +0000)
- Fix a typo that broke handling of DevicePropertyEnumeratorName inside IoGetDeviceProperty

svn path=/trunk/; revision=48583

reactos/ntoskrnl/io/pnpmgr/pnpmgr.c

index 2fb93e2..e8fb4cf 100644 (file)
@@ -3327,8 +3327,8 @@ IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject,
             ASSERT(EnumeratorNameEnd);
             
             /* This is the format of the returned data */
-            PIP_RETURN_DATA((EnumeratorNameEnd - DeviceInstanceName) * 2,
-                            &DeviceNode->ChildBusNumber);
+            PIP_RETURN_DATA((EnumeratorNameEnd - DeviceInstanceName) * sizeof(WCHAR),
+                            DeviceInstanceName);
             
         case DevicePropertyAddress: