Hans Leidekker : iphlpapi: Return a fully initialized GUID from ConvertInterfaceLuidToGuid.

Alexandre Julliard julliard at winehq.org
Wed May 10 17:23:15 CDT 2017


Module: wine
Branch: master
Commit: c6e469347c1964dfa64a2e2289ad28c4be7ef9de
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c6e469347c1964dfa64a2e2289ad28c4be7ef9de

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed May 10 14:27:35 2017 +0200

iphlpapi: Return a fully initialized GUID from ConvertInterfaceLuidToGuid.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/iphlpapi/iphlpapi_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index 1407bfb..b40f91b 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -3090,6 +3090,7 @@ DWORD WINAPI ConvertInterfaceLuidToGuid(const NET_LUID *luid, GUID *guid)
     row.dwIndex = luid->Info.NetLuidIndex;
     if ((ret = GetIfEntry( &row ))) return ret;
 
+    memset( guid, 0, sizeof(*guid) );
     guid->Data1 = luid->Info.NetLuidIndex;
     return NO_ERROR;
 }




More information about the wine-cvs mailing list