ENDSESSION_LOGOFF is a bit flag, test for it using bit end and not equality in WM_ENDSESSION handler

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-04-11 17:56:30 +00:00
parent 2404ce8d8a
commit f801d19a74

View 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