Sebastian Lackner : ntdll: Fix incorrect value added to out-> used in pf_output_stringA.
Alexandre Julliard
julliard at winehq.org
Fri Dec 20 10:45:30 CST 2013
Module: wine
Branch: master
Commit: 661212b5f507e1c5abc64932f95b6397193329f5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=661212b5f507e1c5abc64932f95b6397193329f5
Author: Sebastian Lackner <sebastian at 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;
}
More information about the wine-cvs
mailing list