Qian Hong : advapi32: Initialize the LsaLookupSids() LSA_TRANSLATED_NAME.Name string properly.

Alexandre Julliard julliard at winehq.org
Fri Aug 2 14:26:30 CDT 2019


Module: wine
Branch: master
Commit: 2e53f8bccb65d112e5e341586c730094950fe6c3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2e53f8bccb65d112e5e341586c730094950fe6c3

Author: Qian Hong <qhong at codeweavers.com>
Date:   Fri Aug  2 06:29:16 2019 +0200

advapi32: Initialize the LsaLookupSids() LSA_TRANSLATED_NAME.Name string properly.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=39129
Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/advapi32/lsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/advapi32/lsa.c b/dlls/advapi32/lsa.c
index 592876a..793d791 100644
--- a/dlls/advapi32/lsa.c
+++ b/dlls/advapi32/lsa.c
@@ -508,7 +508,7 @@ NTSTATUS WINAPI LsaLookupSids(
     {
         (*Names)[i].Use = SidTypeUnknown;
         (*Names)[i].DomainIndex = -1;
-        (*Names)[i].Name.Buffer = NULL;
+        RtlInitUnicodeStringEx(&(*Names)[i].Name, NULL);
 
         memset(&(*ReferencedDomains)->Domains[i], 0, sizeof(LSA_TRUST_INFORMATION));
 




More information about the wine-cvs mailing list