Windows: Fix return value of WM_QUERYENDSESSION.

LRESULT should be non-zero if the application can quit,
and it is always handled.

Task-number: QTBUG-35986

Change-Id: Ic8b0ecc731d3efaf94e2a62491918d379fe59f5c
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
bb10
Friedemann Kleint 2014-02-10 17:54:44 +01:00 committed by The Qt Project
parent d61e774307
commit 97d8e3b200
1 changed files with 2 additions and 1 deletions

View File

@ -969,7 +969,8 @@ bool QWindowsContext::windowsProc(HWND hwnd, UINT message,
if (lParam & ENDSESSION_LOGOFF)
fflush(NULL);
return !sessionManager->wasCanceled();
*result = sessionManager->wasCanceled() ? 0 : 1;
return true;
}
case QtWindows::EndSessionApplicationEvent: {
QWindowsSessionManager *sessionManager = platformSessionManager();