[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

svn path=/trunk/; revision=53212
This commit is contained in:
Cameron Gutman 2011-08-13 20:26:44 +00:00
parent 62f7fcc714
commit 99329a8c0d

View file

@ -749,7 +749,7 @@ DWORD PNP_GetDeviceRegProp(
RtlInitUnicodeString(&PlugPlayData.DeviceInstance,
pDeviceID);
PlugPlayData.Buffer = Buffer;
PlugPlayData.BufferSize = *pulTransferLen;
PlugPlayData.BufferSize = *pulLength;
switch (ulProperty)
{
@ -829,7 +829,7 @@ DWORD PNP_GetDeviceRegProp(
}
}
done:;
done:
*pulTransferLen = (ret == CR_SUCCESS) ? *pulLength : 0;
if (hKey != NULL)