ole32: Call GetClipboardFormatName with the correct parameters.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2017-02-03 09:41:04 +01:00 committed by Alexandre Julliard
parent ea7cc6fc55
commit 182fad8b3a
1 changed files with 1 additions and 1 deletions

View File

@ -1199,7 +1199,7 @@ static HRESULT get_priv_data(ole_priv_data **data)
for(cf = 0; (cf = EnumClipboardFormats(cf)) != 0; count++)
{
WCHAR buf[256];
if (GetClipboardFormatNameW(cf, buf, sizeof(buf)))
if (GetClipboardFormatNameW(cf, buf, sizeof(buf) / sizeof(WCHAR)))
TRACE("cf %04x %s\n", cf, debugstr_w(buf));
else
TRACE("cf %04x\n", cf);