shlwapi: Test some cornercases for StrCpyN{A, W} + make them pass in wine

Louis. Lenders xerox_xerox2000 at
Sat Aug 29 06:31:42 CDT 2009

This fixes bug

The app bumped out because of trying StrCpyNW with lpSrc string NULL:
0009:Call shlwapi.StrCpyNW(0017fc88,00000000,00000104) ret=004306b2
0009:trace:seh:raise_exception code=c0000005 flags=0 addr=0x7ee58f4f
ip=7ee58f4f tid=0009

According to tests StrCpyNA works as expected in wine in cornercases, but StrCpyNW
 crashes sadly in wine when passing in zero length and/or zero lpSrc. Tested on winxp.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0006-shlwapi-Test-some-cornercases-for-StrCpyN-A-W-make.txt
URL: <>

More information about the wine-patches mailing list