]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
execute the usual cleanup code from EVT_END_SESSION handler under MSW, otherwise...
[wxWidgets.git] / src / msw / window.cpp
index 53d7313f3690078be08bafdb735fb79a74145b7e..f0baae952189416ab07bde209ecfbef8ddda5d2b 100644 (file)
@@ -3918,7 +3918,7 @@ bool wxWindowMSW::HandleEndSession(bool endSession, long logOff)
     wxCloseEvent event(wxEVT_END_SESSION, wxID_ANY);
     event.SetEventObject(wxTheApp);
     event.SetCanVeto(false);
-    event.SetLoggingOff( (logOff == (long)ENDSESSION_LOGOFF) );
+    event.SetLoggingOff((logOff & ENDSESSION_LOGOFF) != 0);
 
     return wxTheApp->ProcessEvent(event);
 #else