ole32: Call GetClipboardFormatName with the correct parameters.

Sebastian Lackner sebastian at fds-team.de
Fri Feb 3 02:41:04 CST 2017


Fixes c85eaae44c84f9e8b996793445f3807124e7c355.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 dlls/ole32/clipboard.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c
index 6e4dd440500..faec553c03b 100644
--- a/dlls/ole32/clipboard.c
+++ b/dlls/ole32/clipboard.c
@@ -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);
-- 
2.11.0



More information about the wine-patches mailing list