Aric Stewart : advapi: Correct buffer length in LookupAccountNameW.

Alexandre Julliard julliard at winehq.org
Thu May 28 09:39:40 CDT 2009


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

Author: Aric Stewart <aric at codeweavers.com>
Date:   Wed May 27 14:31:10 2009 -0500

advapi: Correct buffer length in LookupAccountNameW.

---

 dlls/advapi32/security.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c
index efe34f4..0aa92ce 100644
--- a/dlls/advapi32/security.c
+++ b/dlls/advapi32/security.c
@@ -2761,6 +2761,7 @@ BOOL WINAPI LookupAccountNameW( LPCWSTR lpSystemName, LPCWSTR lpAccountName, PSI
             SetLastError(ERROR_NONE_MAPPED);
             ret = FALSE;
         }
+        nameLen = UNLEN + 1;
     }
 
     if (GetUserNameW(userName, &nameLen) && !strcmpW(lpAccountNamePtr, userName))




More information about the wine-cvs mailing list