From 5f71b16d07c1b989c1854fab0787ceb4a8bd0f07 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Thu, 19 Oct 2006 12:11:51 +0100 Subject: [PATCH] oledlg: Return the appropiate value after the dialog is closed. --- dlls/oledlg/pastespl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/oledlg/pastespl.c b/dlls/oledlg/pastespl.c index 08b7f95afba..7bb7435281d 100644 --- a/dlls/oledlg/pastespl.c +++ b/dlls/oledlg/pastespl.c @@ -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; }