[PATCH] shlwapi/tests/path.c: Prevent crash with older versions

Jon Griffiths jon_p_griffiths at yahoo.com
Sat May 31 09:06:34 CDT 2008


Hi,

Earlier versions (e.g XP sp1) don't test the length correctly in PathCanonicalizeA, so give them enough buffer to write to. Also test the returned string, not the source string (which isn't changed).

Cheers
Jon



      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SHLWAPI_fix_path_test_crash.diff
Type: text/x-diff
Size: 1357 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080531/eb811aec/attachment.diff 


More information about the wine-patches mailing list