ole32: Only trace a clipboard format name if it has one.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-02-02 18:51:44 +01:00
parent 77e566a3cb
commit c85eaae44c

View file

@ -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]);