Vincent Povirk : winex11.drv: Report failure when we can' t convert a selection.

Alexandre Julliard julliard at wine.codeweavers.com
Mon May 4 07:58:53 CDT 2015


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

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Fri May  1 15:05:11 2015 -0500

winex11.drv: Report failure when we can't convert a selection.

---

 dlls/winex11.drv/clipboard.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c
index dad4a7a..96b7878 100644
--- a/dlls/winex11.drv/clipboard.c
+++ b/dlls/winex11.drv/clipboard.c
@@ -3506,6 +3506,7 @@ static void X11DRV_HandleSelectionRequest( HWND hWnd, XSelectionRequestEvent *ev
     else
     {
         LPWINE_CLIPFORMAT lpFormat = X11DRV_CLIPBOARD_LookupProperty(NULL, event->target);
+        BOOL success = FALSE;
 
         if (lpFormat && lpFormat->lpDrvExportFunc)
         {
@@ -3536,9 +3537,13 @@ static void X11DRV_HandleSelectionRequest( HWND hWnd, XSelectionRequestEvent *ev
 
                     GlobalUnlock(hClipData);
                     GlobalFree(hClipData);
+                    success = TRUE;
                 }
             }
         }
+
+        if (!success)
+            rprop = None;  /* report failure to client */
     }
 
 END:




More information about the wine-cvs mailing list