http://bugs.winehq.org/show_bug.cgi?id=16684
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hans@meelstraat.net
--- Comment #10 from Hans Leidekker hans@meelstraat.net 2009-09-02 06:46:15 --- + 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.