bug in GetUserNameW error return values

2011-05-30 Thread Kevin Hendricks
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

Re: bug in GetUserNameW error return values

2011-05-30 Thread James McKenzie
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 =