mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
advapi32: Fixed size of userName.
This commit is contained in:
parent
e2eaface45
commit
fb3d3d020d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue