Sebastian Lackner : ntdll: Fix incorrect value added to out-> used in pf_output_stringA.
Module: wine Branch: master Commit: 661212b5f507e1c5abc64932f95b6397193329f5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=661212b5f507e1c5abc64932f9... Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Fri Dec 20 05:54:09 2013 +0100 ntdll: Fix incorrect value added to out->used in pf_output_stringA. --- dlls/ntdll/printf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/printf.c b/dlls/ntdll/printf.c index 0a27f7e..49d3983 100644 --- a/dlls/ntdll/printf.c +++ b/dlls/ntdll/printf.c @@ -137,7 +137,7 @@ static inline int pf_output_stringA( pf_output *out, LPCSTR str, int len ) return len; } if (space > 0) RtlMultiByteToUnicodeN( p, space * sizeof(WCHAR), NULL, str, len ); - out->used += n; + out->used += n / sizeof(WCHAR); } return -1; }
participants (1)
-
Alexandre Julliard