user32: Handle WM_ENDSESSION in DefWinProc().
DefWinProc() should call PostQuitMessage() on WM_ENDSESSION if the shutdown is proceeding.
This commit is contained in:
parent
feb153c649
commit
29b5c987d5
|
@ -648,6 +648,11 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
|
||||||
case WM_QUERYENDSESSION:
|
case WM_QUERYENDSESSION:
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
case WM_ENDSESSION:
|
||||||
|
if (wParam)
|
||||||
|
PostQuitMessage(0);
|
||||||
|
return 0;
|
||||||
|
|
||||||
case WM_SETICON:
|
case WM_SETICON:
|
||||||
{
|
{
|
||||||
HICON ret;
|
HICON ret;
|
||||||
|
|
Loading…
Reference in New Issue