oledlg: Return the appropiate value after the dialog is closed.

This commit is contained in:
Huw Davies 2006-10-19 12:11:51 +01:00 committed by Alexandre Julliard
parent feeaf9c238
commit 5f71b16d07
1 changed files with 3 additions and 3 deletions

View File

@ -687,6 +687,7 @@ UINT WINAPI OleUIPasteSpecialA(LPOLEUIPASTESPECIALA psA)
UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW ps)
{
LPCDLGTEMPLATEW dlg_templ = (LPCDLGTEMPLATEW)ps->hResource;
UINT ret;
TRACE("(%p)\n", ps);
@ -708,8 +709,7 @@ UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW ps)
if(!dlg_templ) return OLEUI_ERR_LOADTEMPLATEFAILURE;
}
DialogBoxIndirectParamW(OLEDLG_hInstance, dlg_templ, ps->hWndOwner, ps_dlg_proc, (LPARAM)ps);
ret = DialogBoxIndirectParamW(OLEDLG_hInstance, dlg_templ, ps->hWndOwner, ps_dlg_proc, (LPARAM)ps);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return OLEUI_FALSE;
return ret;
}