mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 05:51:26 +08:00
[UMPNPMGR] Fix PNP_GetInterfaceDeviceAlias
Pass Parameters to NtPlugPlayControl.
This commit is contained in:
@@ -2655,6 +2655,11 @@ PNP_GetInterfaceDeviceAlias(
|
||||
if (ulFlags != 0)
|
||||
return CR_INVALID_FLAG;
|
||||
|
||||
RtlInitUnicodeString(&PlugPlayData.SymbolicLinkName, pszInterfaceDevice);
|
||||
PlugPlayData.AliasInterfaceClassGuid = AliasInterfaceGuid;
|
||||
PlugPlayData.AliasSymbolicLinkName = pszAliasInterfaceDevice;
|
||||
PlugPlayData.AliasSymbolicLinkNameLength = *pulTransferLen;
|
||||
|
||||
Status = NtPlugPlayControl(PlugPlayControlGetInterfaceDeviceAlias,
|
||||
&PlugPlayData,
|
||||
sizeof(PLUGPLAY_CONTROL_INTERFACE_ALIAS_DATA));
|
||||
@@ -2666,6 +2671,7 @@ PNP_GetInterfaceDeviceAlias(
|
||||
else
|
||||
{
|
||||
*pulLength = 0;
|
||||
*pulTransferLen = 0;
|
||||
ret = NtStatusToCrError(Status);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user