mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 19:41:40 +00:00
[UMPNPMGR] Fix PNP_GetInterfaceDeviceAlias
Pass Parameters to NtPlugPlayControl.
This commit is contained in:
parent
0b1a448150
commit
44da696ad7
1 changed files with 6 additions and 0 deletions
|
@ -2655,6 +2655,11 @@ PNP_GetInterfaceDeviceAlias(
|
||||||
if (ulFlags != 0)
|
if (ulFlags != 0)
|
||||||
return CR_INVALID_FLAG;
|
return CR_INVALID_FLAG;
|
||||||
|
|
||||||
|
RtlInitUnicodeString(&PlugPlayData.SymbolicLinkName, pszInterfaceDevice);
|
||||||
|
PlugPlayData.AliasInterfaceClassGuid = AliasInterfaceGuid;
|
||||||
|
PlugPlayData.AliasSymbolicLinkName = pszAliasInterfaceDevice;
|
||||||
|
PlugPlayData.AliasSymbolicLinkNameLength = *pulTransferLen;
|
||||||
|
|
||||||
Status = NtPlugPlayControl(PlugPlayControlGetInterfaceDeviceAlias,
|
Status = NtPlugPlayControl(PlugPlayControlGetInterfaceDeviceAlias,
|
||||||
&PlugPlayData,
|
&PlugPlayData,
|
||||||
sizeof(PLUGPLAY_CONTROL_INTERFACE_ALIAS_DATA));
|
sizeof(PLUGPLAY_CONTROL_INTERFACE_ALIAS_DATA));
|
||||||
|
@ -2666,6 +2671,7 @@ PNP_GetInterfaceDeviceAlias(
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
*pulLength = 0;
|
*pulLength = 0;
|
||||||
|
*pulTransferLen = 0;
|
||||||
ret = NtStatusToCrError(Status);
|
ret = NtStatusToCrError(Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue