advapi: Correct buffer length in LookupAccountNameW.

This commit is contained in:
Aric Stewart 2009-05-27 14:31:10 -05:00 committed by Alexandre Julliard
parent 8219db2d6d
commit a61885d64d

View file

@ -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))