Sebastian Lackner : ole32: Call GetClipboardFormatName with the correct parameters.

Alexandre Julliard julliard at winehq.org
Fri Feb 3 13:31:32 CST 2017


Module: wine
Branch: master
Commit: 182fad8b3a99ac3aa9dc19a3ed2954202010a274
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=182fad8b3a99ac3aa9dc19a3ed2954202010a274

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Fri Feb  3 09:41:04 2017 +0100

ole32: Call GetClipboardFormatName with the correct parameters.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 6e4dd44..faec553 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);




More information about the wine-cvs mailing list