bug in GetUserNameW error return values
James McKenzie
jjmckenzie51 at gmail.com
Mon May 30 19:25:17 CDT 2011
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
More information about the wine-devel
mailing list