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

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


This fixes bug http://bugs.winehq.org/show_bug.cgi?id=16684

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: <http://www.winehq.org/pipermail/wine-patches/attachments/20090829/2c4195dd/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0006-shlwapi-Test-some-cornercases-for-StrCpyN-A-W-make.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090829/2c4195dd/attachment.txt>


More information about the wine-patches mailing list