advapi32: Set *lpSize properly in GetUserNameA.

oldstable
Alex Stanev 2011-07-02 11:49:44 +03:00 committed by Alexandre Julliard
parent b09078b016
commit 82b7a4166f
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ GetUserNameA( LPSTR lpszName, LPDWORD lpSize )
ret = GetUserNameW( buffer, &sizeW );
if (ret)
WideCharToMultiByte( CP_ACP, 0, buffer, -1, lpszName, *lpSize, NULL, NULL );
*lpSize = WideCharToMultiByte( CP_ACP, 0, buffer, -1, lpszName, *lpSize, NULL, NULL );
else
*lpSize = sizeW;