advapi32: Fixed size of userName.

This commit is contained in:
Marcus Meissner 2009-02-05 22:01:34 +01:00 committed by Alexandre Julliard
parent e2eaface45
commit fb3d3d020d

View file

@ -2721,7 +2721,7 @@ BOOL WINAPI LookupAccountNameW( LPCWSTR lpSystemName, LPCWSTR lpAccountName, PSI
nameLen = UNLEN + 1;
userName = HeapAlloc(GetProcessHeap(), 0, nameLen);
userName = HeapAlloc(GetProcessHeap(), 0, nameLen*sizeof(WCHAR));
if (GetUserNameW(userName, &nameLen) && !strcmpW(lpAccountName, userName))
ret = lookup_user_account_name(Sid, cbSid, ReferencedDomainName,