Francois Gouget : oleaut32: Fix a trace containing a null character.
Alexandre Julliard
julliard at winehq.org
Fri Feb 25 07:30:23 CST 2022
Module: wine
Branch: oldstable
Commit: 3b1725678678032a278ab0d55a9acc87c49147be
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3b1725678678032a278ab0d55a9acc87c49147be
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Wed Jul 7 19:13:53 2021 +0200
oleaut32: Fix a trace containing a null character.
printf("%c Hello\n", 0) works but not TRACE("%c Hello\n", 0) because the
string is formatted before printing.
Work around the issue with wine_dbgstr_w().
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 6763ed84cf0629dd7d1495263e1e3ea9aaf3d663)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/oleaut32/variant.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c
index 5e71d0a536d..c76656d25a6 100644
--- a/dlls/oleaut32/variant.c
+++ b/dlls/oleaut32/variant.c
@@ -1553,8 +1553,8 @@ static void VARIANT_GetLocalisedNumberChars(VARIANT_NUMBER_CHARS *lpChars, LCID
break;
default: WARN("buffer too small for LOCALE_SCURRENCY\n");
}
- TRACE("lcid 0x%x, cCurrencyLocal =%d,%d '%c','%c'\n", lcid, lpChars->cCurrencyLocal,
- lpChars->cCurrencyLocal2, lpChars->cCurrencyLocal, lpChars->cCurrencyLocal2);
+ TRACE("lcid 0x%x, cCurrencyLocal=%d,%d %s\n", lcid, lpChars->cCurrencyLocal,
+ lpChars->cCurrencyLocal2, wine_dbgstr_w(buff));
memcpy(&lastChars, lpChars, sizeof(defaultChars));
lastLcid = lcid;
More information about the wine-cvs
mailing list