Ken Thomases : winemac: Fix search for clipboard format matching a pasteboard type so it can fail when it should.

Alexandre Julliard julliard at winehq.org
Fri Jan 10 14:44:54 CST 2014


Module: wine
Branch: stable
Commit: 23a717b298f8035e5afd511301bb5d2a074b19be
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=23a717b298f8035e5afd511301bb5d2a074b19be

Author: Ken Thomases <ken at codeweavers.com>
Date:   Wed Nov  6 06:58:42 2013 -0600

winemac: Fix search for clipboard format matching a pasteboard type so it can fail when it should.

It had been acting as though the last registered clipboard format always
matched any pasteboard type.

(cherry picked from commit 7c0c30b4d650d663770e0bbf683946005506bb8d)

---

 dlls/winemac.drv/clipboard.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/winemac.drv/clipboard.c b/dlls/winemac.drv/clipboard.c
index ee63c10..5d765f4 100644
--- a/dlls/winemac.drv/clipboard.c
+++ b/dlls/winemac.drv/clipboard.c
@@ -367,6 +367,7 @@ static WINE_CLIPFORMAT* format_for_type(WINE_CLIPFORMAT *current, CFStringRef ty
         }
     }
 
+    format = NULL;
     if (!current)
     {
         LPWSTR name;




More information about the wine-cvs mailing list