]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/powercmn.cpp
fixing overrelease and out-of-bounds write, fixes #13725
[wxWidgets.git] / src / common / powercmn.cpp
index c15ebebc93fe66c7c884a4748691c824ce0b641f..bb5acce9e464b5d64462829139fd80771539c133 100644 (file)
 // ============================================================================
 
 #ifdef wxHAS_POWER_EVENTS
-    wxDEFINE_EVENT( wxEVT_POWER_SUSPENDING, wxPowerEvent )
-    wxDEFINE_EVENT( wxEVT_POWER_SUSPENDED, wxPowerEvent )
-    wxDEFINE_EVENT( wxEVT_POWER_SUSPEND_CANCEL, wxPowerEvent )
-    wxDEFINE_EVENT( wxEVT_POWER_RESUME, wxPowerEvent )
+    wxDEFINE_EVENT( wxEVT_POWER_SUSPENDING, wxPowerEvent );
+    wxDEFINE_EVENT( wxEVT_POWER_SUSPENDED, wxPowerEvent );
+    wxDEFINE_EVENT( wxEVT_POWER_SUSPEND_CANCEL, wxPowerEvent );
+    wxDEFINE_EVENT( wxEVT_POWER_RESUME, wxPowerEvent );
 
     IMPLEMENT_DYNAMIC_CLASS(wxPowerEvent, wxEvent)
 #endif
 
 // provide stubs for the systems not implementing these functions
-#if !defined(__WXPALMOS__) && !defined(__WXMSW__)
+#if !defined(__WINDOWS__)
 
 wxPowerType wxGetPowerType()
 {