mlang/tests: don't call lstrcpyW on a null string

Dan Kegel dank at kegel.com
Mon Oct 17 10:24:40 CDT 2011


Avoids the valgrind warning:

Invalid read of size 2
   at lstrcpyW (unicode.h:207)
   by func_mlang (mlang.c:1206)
   by run_test (test.h:556)
   by main (test.h:624)
 Address 0x0 is not stack'd, malloc'd or (recently) free'd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mlang-tests-broken_name.patch
Type: text/x-patch
Size: 1865 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20111017/9d5b9d9a/attachment.bin>


More information about the wine-patches mailing list