Module: wine Branch: master Commit: 7a17e824ab6906fa78ff17fd778793e158b87940 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a17e824ab6906fa78ff17fd77...
Author: Huw Davies huw@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;