Commit 82b7a416 authored by Alex Stanev's avatar Alex Stanev Committed by Alexandre Julliard

advapi32: Set *lpSize properly in GetUserNameA.

parent b09078b0
...@@ -65,7 +65,7 @@ GetUserNameA( LPSTR lpszName, LPDWORD lpSize ) ...@@ -65,7 +65,7 @@ GetUserNameA( LPSTR lpszName, LPDWORD lpSize )
ret = GetUserNameW( buffer, &sizeW ); ret = GetUserNameW( buffer, &sizeW );
if (ret) if (ret)
WideCharToMultiByte( CP_ACP, 0, buffer, -1, lpszName, *lpSize, NULL, NULL ); *lpSize = WideCharToMultiByte( CP_ACP, 0, buffer, -1, lpszName, *lpSize, NULL, NULL );
else else
*lpSize = sizeW; *lpSize = sizeW;
......
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