[ros-diffs] [cgutman] 53212: [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
cgutman at svn.reactos.org
cgutman at svn.reactos.org
Sat Aug 13 20:26:44 UTC 2011
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/umpnpmgr.c?rev=53212&r1=53211&r2=53212&view=diff
==============================================================================
--- 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)
More information about the Ros-diffs
mailing list