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

This commit is contained in:
Huw Davies 2006-10-18 21:06:21 +01:00 committed by Alexandre Julliard
parent 65e112a155
commit 7a17e824ab
1 changed files with 3 additions and 0 deletions

View File

@ -243,6 +243,9 @@ UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW ps)
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;