Author: cgutman
Date: Sat Aug 13 20:26:44 2011
New Revision: 53212
URL:
http://svn.reactos.org/svn/reactos?rev=53212&view=rev
Log:
[UMPNPMGR]
- Store the correct buffer size for requests that aren't satisfied via the registry
- Fixes displaying the enumerator on the device manager property page
Modified:
trunk/reactos/base/services/umpnpmgr/umpnpmgr.c
Modified: trunk/reactos/base/services/umpnpmgr/umpnpmgr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/umpnpmgr/ump…
==============================================================================
--- trunk/reactos/base/services/umpnpmgr/umpnpmgr.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/umpnpmgr/umpnpmgr.c [iso-8859-1] Sat Aug 13 20:26:44 2011
@@ -749,7 +749,7 @@
RtlInitUnicodeString(&PlugPlayData.DeviceInstance,
pDeviceID);
PlugPlayData.Buffer = Buffer;
- PlugPlayData.BufferSize = *pulTransferLen;
+ PlugPlayData.BufferSize = *pulLength;
switch (ulProperty)
{
@@ -829,7 +829,7 @@
}
}
-done:;
+done:
*pulTransferLen = (ret == CR_SUCCESS) ? *pulLength : 0;
if (hKey != NULL)