Commit 29b5c987 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

user32: Handle WM_ENDSESSION in DefWinProc().

DefWinProc() should call PostQuitMessage() on WM_ENDSESSION if the shutdown is proceeding.
parent feb153c6
......@@ -648,6 +648,11 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
case WM_QUERYENDSESSION:
return 1;
case WM_ENDSESSION:
if (wParam)
PostQuitMessage(0);
return 0;
case WM_SETICON:
{
HICON ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment