mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 13:43:42 +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)
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue