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:
parent
2404ce8d8a
commit
f801d19a74
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user