user32: Handle WM_ENDSESSION in DefWinProc()
Francois Gouget
fgouget at codeweavers.com
Fri Feb 24 08:34:09 CST 2006
According to my tests on Windows, DefWinProc() should call
PostQuitMessage() on WM_ENDSESSION if the shutdown is proceeding.
Changelog:
* dlls/user/defwnd.c
Francois Gouget <fgouget at codeweavers.com>
DefWinProc() should call PostQuitMessage() on WM_ENDSESSION if the
shutdown is proceeding.
--
Francois Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: dlls/user/defwnd.c
===================================================================
RCS file: /home/wine/wine/dlls/user/defwnd.c,v
retrieving revision 1.7
diff -u -p -r1.7 defwnd.c
--- dlls/user/defwnd.c 9 Nov 2005 10:33:40 -0000 1.7
+++ dlls/user/defwnd.c 24 Feb 2006 14:27:57 -0000
@@ -648,6 +648,11 @@ static LRESULT DEFWND_DefWinProc( HWND h
case WM_QUERYENDSESSION:
return 1;
+ case WM_ENDSESSION:
+ if (wParam)
+ PostQuitMessage(0);
+ return 0;
+
case WM_SETICON:
{
HICON ret;
More information about the wine-patches
mailing list