user32: Handle WM_ENDSESSION in DefWinProc().

DefWinProc() should call PostQuitMessage() on WM_ENDSESSION if the
shutdown is proceeding.
This commit is contained in:
Francois Gouget 2006-02-24 15:34:09 +01:00 committed by Alexandre Julliard
parent feb153c649
commit 29b5c987d5
1 changed files with 5 additions and 0 deletions

View File

@ -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;