Huw Davies : oledlg: Only send the end dialog msg if the button is actually clicked.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 23 06:12:29 CDT 2006


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Oct 20 16:54:53 2006 +0100

oledlg: Only send the end dialog msg if the button is actually clicked.

---

 dlls/oledlg/pastespl.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/oledlg/pastespl.c b/dlls/oledlg/pastespl.c
index ccfceca..8e01f4b 100644
--- a/dlls/oledlg/pastespl.c
+++ b/dlls/oledlg/pastespl.c
@@ -605,8 +605,14 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND
             }
         case IDOK:
         case IDCANCEL:
-            send_end_dialog_msg(hdlg, ps_struct, LOWORD(wp));
-            return FALSE;
+            switch(HIWORD(wp))
+            {
+            case BN_CLICKED:
+                send_end_dialog_msg(hdlg, ps_struct, LOWORD(wp));
+                return FALSE;
+            default:
+                return FALSE;
+            }
         }
         return FALSE;
     default:




More information about the wine-cvs mailing list