kernel32: small trace fix in WideCharToMultiByte

Kimmo Myllyvirta kimmo.myllyvirta at gmail.com
Sun Oct 23 10:51:49 CDT 2005


This fixes cases where trace prited out garbage from beyond the passed 
destination buffer, because WideCharToMultiByte does not null terminate 
strings.
0009:Call kernel32.WideCharToMultiByte(00006faf,00000000,557f22e0 
L"Random",00000006,557f2310,00000006,55bc3a87,00000000) ret=56bd295a
0009:trace:nls:WideCharToMultiByte cp 28591 L"Random" -> 
"RandomUUUUUUUUUUq)"
0009:Ret  kernel32.WideCharToMultiByte() retval=00000006 ret=56bd295a

Changelog:
Fix trace in WideCharToMultiByte - do not assume the destination string 
is null terminated.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: locale_trace_fix.diff
Type: text/x-patch
Size: 533 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051023/ba059764/locale_trace_fix.diff


More information about the wine-patches mailing list