]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/frame.cpp
Enable variadic macros for VC9 and later.
[wxWidgets.git] / src / msw / frame.cpp
index 40babb6805eb27a3027c0c1a60e3f61192a0f4da..f61c8f5f0cbda0cd63003e6027e284d205da5072 100644 (file)
@@ -854,7 +854,7 @@ bool
 wxFrame::DoSendMenuOpenCloseEvent(wxEventType evtType, wxMenu* menu, bool popup)
 {
     wxMenuEvent event(evtType, popup ? wxID_ANY : 0, menu);
-    event.SetEventObject(this);
+    event.SetEventObject(menu);
 
     return HandleWindowEvent(event);
 }