From 7f865763fa4894d3313729d7bee1a8df21adc58a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 21 Aug 2010 22:08:00 +0000 Subject: [PATCH] [NTOSKRNL] - Fix a typo that broke handling of DevicePropertyEnumeratorName inside IoGetDeviceProperty svn path=/trunk/; revision=48583 --- reactos/ntoskrnl/io/pnpmgr/pnpmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c index 2fb93e2209f..e8fb4cf5026 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -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: -- 2.17.1