advapi32: fix buffer overrun in tests/registry.c:wine_debugstr_wn(), try 2

Dan Kegel dank at
Wed Oct 31 01:04:36 CDT 2007

OK, my last try was ugly and deserved to be dropped.
This one is a one-bit change, and easier to understand.

Fixes an off-by-one buffer overflow in wine_debugstr_wn()
in which the wchar after the end of the buffer was read.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: advapi32-debugstr.patch
Type: text/x-patch
Size: 444 bytes
Desc: not available
Url : 

More information about the wine-devel mailing list