Skip to content
Snippets Groups Projects
Commit 29b5c987 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard
Browse files

user32: Handle WM_ENDSESSION in DefWinProc().

DefWinProc() should call PostQuitMessage() on WM_ENDSESSION if the
shutdown is proceeding.
parent feb153c6
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment