Commit fb3d3d02 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

advapi32: Fixed size of userName.

parent e2eaface
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment