Alexandre Julliard : ole32: Only trace a clipboard format name if it has one.
Module: wine Branch: master Commit: c85eaae44c84f9e8b996793445f3807124e7c355 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c85eaae44c84f9e8b996793445... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Feb 2 18:51:44 2017 +0100 ole32: Only trace a clipboard format name if it has one. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ole32/clipboard.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c index b547cdf..b42544a 100644 --- a/dlls/ole32/clipboard.c +++ b/dlls/ole32/clipboard.c @@ -1198,9 +1198,11 @@ static HRESULT get_priv_data(ole_priv_data **data) for(cf = 0; (cf = EnumClipboardFormats(cf)) != 0; count++) { - char buf[100]; - GetClipboardFormatNameA(cf, buf, sizeof(buf)); - TRACE("cf %04x %s\n", cf, buf); + WCHAR buf[256]; + if (GetClipboardFormatNameW(cf, buf, sizeof(buf))) + TRACE("cf %04x %s\n", cf, debugstr_w(buf)); + else + TRACE("cf %04x\n", cf); } TRACE("count %d\n", count); size += count * sizeof(ret->entries[0]);
participants (1)
-
Alexandre Julliard