mirror of
https://github.com/reactos/wine.git
synced 2025-01-21 03:15:18 +00:00
advapi32: Set *lpSize properly in GetUserNameA.
This commit is contained in:
parent
b09078b016
commit
82b7a4166f
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user