http://bugs.winehq.org/show_bug.cgi?id=16684
--- Comment #11 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2009-09-04 11:11:23 --- (In reply to comment #10)
if(lpszSrc)
lstrcpynW(lpszStr, lpszSrc, iLen);
else
*lpszStr = '\0';
- }
It would be cleaner to copy the relevant part of lstrcpynW and make it deal with a NULL src buffer.
i'm not sure what you mean, you mean copy the whole part of code from lstrcpynw from kernel32? Anyway, maybe i resend the tests, but as for the fix i'll leave that to someone else