[PATCH 2/2 resend] winemac: Cast buffer to const WCHAR* in insert_clipboard_format.

Ken Thomases ken at codeweavers.com
Mon Jun 1 11:31:53 CDT 2020


From: Gijs Vermeulen <gijsvrm at gmail.com>

Signed-off-by: Gijs Vermeulen <gijsvrm at gmail.com>
Signed-off-by: Ken Thomases <ken at codeweavers.com>
---
 dlls/winemac.drv/clipboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winemac.drv/clipboard.c b/dlls/winemac.drv/clipboard.c
index 65fb3cc8ec4..9c009307051 100644
--- a/dlls/winemac.drv/clipboard.c
+++ b/dlls/winemac.drv/clipboard.c
@@ -288,7 +288,7 @@ static WINE_CLIPFORMAT *insert_clipboard_format(UINT id, CFStringRef type)
         }
 
         format->type = CFStringCreateWithFormat(NULL, NULL, CFSTR("%@%S"),
-                                                registered_name_type_prefix, buffer);
+                                                registered_name_type_prefix, (const WCHAR*)buffer);
     }
 
     list_add_tail(&format_list, &format->entry);
-- 
2.22.0




More information about the wine-devel mailing list