Huw Davies : oledlg: Use the clipboard if the user doesn' t pass an IDataObject.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Oct 20 04:45:54 CDT 2006


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Oct 18 21:06:21 2006 +0100

oledlg: Use the clipboard if the user doesn't pass an IDataObject.

---

 dlls/oledlg/pastespl.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/oledlg/pastespl.c b/dlls/oledlg/pastespl.c
index bd9aa21..4eeceff 100644
--- a/dlls/oledlg/pastespl.c
+++ b/dlls/oledlg/pastespl.c
@@ -243,6 +243,9 @@ UINT WINAPI OleUIPasteSpecialW(LPOLEUIPA
 
     if(TRACE_ON(ole)) dump_pastespecial(ps);
 
+    if(!ps->lpSrcDataObj)
+        OleGetClipboard(&ps->lpSrcDataObj);
+
     if(ps->hInstance || !ps->hResource)
     {
         HINSTANCE hInst = ps->hInstance ? ps->hInstance : OLEDLG_hInstance;




More information about the wine-cvs mailing list