]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialog.cpp
fixing overrelease and out-of-bounds write, fixes #13725
[wxWidgets.git] / src / msw / dialog.cpp
index 89d294e76021e4b98a2668d26bd7d97ee14c898d..8c9b2a8d3efd44226ca1ce1befca6b3d5e47458e 100644 (file)
@@ -25,6 +25,7 @@
 #endif
 
 #include "wx/dialog.h"
+#include "wx/testing.h"
 
 #ifndef WX_PRECOMP
     #include "wx/msw/wrapcdlg.h"
@@ -197,6 +198,8 @@ bool wxDialog::Show(bool show)
 // show dialog modally
 int wxDialog::ShowModal()
 {
+    WX_TESTING_SHOW_MODAL_HOOK();
+
     wxASSERT_MSG( !IsModal(), wxT("ShowModal() can't be called twice") );
 
     Show();