advapi32: Fix wine_debugstr_wn to not read past the end of the buffer.

Hans Leidekker hans at it.vu.nl
Fri Nov 9 05:14:11 CST 2007


I agree with Dan, the version of wine_debugstr_wn in the test reads
one WCHAR past the end of the buffer when the specified length includes
terminating zero. Changing it to read like the original in libs/wine/debug.c
makes Valgrind happy again.

 -Hans

Changelog
 Fix wine_debugstr_wn to not read past the end of the buffer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: advapi32_tests_valgrind.diff
Type: text/x-diff
Size: 426 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071109/88c847c5/attachment.diff 


More information about the wine-patches mailing list