From 44da696ad76daadcdaee92e1842f8e0348023cb8 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Thu, 19 Jun 2025 11:49:56 +0200 Subject: [PATCH] [UMPNPMGR] Fix PNP_GetInterfaceDeviceAlias Pass Parameters to NtPlugPlayControl. --- base/services/umpnpmgr/rpcserver.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/base/services/umpnpmgr/rpcserver.c b/base/services/umpnpmgr/rpcserver.c index d4d69f64f67..e4566ca8dfb 100644 --- a/base/services/umpnpmgr/rpcserver.c +++ b/base/services/umpnpmgr/rpcserver.c @@ -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); }