Commit 9c8dd8fb authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent b9b812da
......@@ -605,8 +605,14 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp)
}
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment