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

Alexandre Julliard julliard at wine.codeweavers.com
Fri Oct 20 04:46:05 CDT 2006


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Oct 19 12:11:51 2006 +0100

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

---

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

diff --git a/dlls/oledlg/pastespl.c b/dlls/oledlg/pastespl.c
index 08b7f95..7bb7435 100644
--- a/dlls/oledlg/pastespl.c
+++ b/dlls/oledlg/pastespl.c
@@ -687,6 +687,7 @@ UINT WINAPI OleUIPasteSpecialA(LPOLEUIPA
 UINT WINAPI OleUIPasteSpecialW(LPOLEUIPASTESPECIALW ps)
 {
     LPCDLGTEMPLATEW dlg_templ = (LPCDLGTEMPLATEW)ps->hResource;
+    UINT ret;
 
     TRACE("(%p)\n", ps);
 
@@ -708,8 +709,7 @@ UINT WINAPI OleUIPasteSpecialW(LPOLEUIPA
         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;
 }




More information about the wine-cvs mailing list