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@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5c687f5d9a
commit
6763ed84cf
|
@ -1554,8 +1554,8 @@ static void VARIANT_GetLocalisedNumberChars(VARIANT_NUMBER_CHARS *lpChars, LCID
|
||||||
break;
|
break;
|
||||||
default: WARN("buffer too small for LOCALE_SCURRENCY\n");
|
default: WARN("buffer too small for LOCALE_SCURRENCY\n");
|
||||||
}
|
}
|
||||||
TRACE("lcid 0x%x, cCurrencyLocal =%d,%d '%c','%c'\n", lcid, lpChars->cCurrencyLocal,
|
TRACE("lcid 0x%x, cCurrencyLocal=%d,%d %s\n", lcid, lpChars->cCurrencyLocal,
|
||||||
lpChars->cCurrencyLocal2, lpChars->cCurrencyLocal, lpChars->cCurrencyLocal2);
|
lpChars->cCurrencyLocal2, wine_dbgstr_w(buff));
|
||||||
|
|
||||||
memcpy(&lastChars, lpChars, sizeof(defaultChars));
|
memcpy(&lastChars, lpChars, sizeof(defaultChars));
|
||||||
lastLcid = lcid;
|
lastLcid = lcid;
|
||||||
|
|
Loading…
Reference in New Issue