]> git.saurik.com Git - wxWidgets.git/commitdiff
ENDSESSION_LOGOFF is a bit flag, test for it using bit end and not equality in WM_END...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 11 Apr 2008 17:56:30 +0000 (17:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 11 Apr 2008 17:56:30 +0000 (17:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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