On 5/30/11 11:52 AM, Kevin Hendricks wrote:
Hi,
There is a small bug in the wine implementation of GetUserNameW (and the same
fix is needed in GetUserNameA).
From:
dlls/advapi32/advapi.c starting at line 92
if (len> *lpSize)
{
SetLastError(ERROR_MORE_DATA);
*lpSize = len;
return FALSE;
}
It seems the actual GetUserNameW returns 122 not 234 which maps to
ERROR_INSUFFICIENT_BUFFER and not ERROR_MORE_DATA
File a bug report with all of these details. Developers do not work
bugs from the mailing list.
James McKenzie