user: Fix ExitWindows().
commit6edd77228dd18f013fb64a22abaaa4da14fde707
authorFrancois Gouget <fgouget@codeweavers.com>
Fri, 24 Feb 2006 11:58:16 +0000 (24 12:58 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 24 Feb 2006 20:06:23 +0000 (24 21:06 +0100)
tree38821f4f285d78385072b9c4995546bf486d1c84
parentec6744490d6ac1f4db8690061dd14ff69ba3e6c2
user: Fix ExitWindows().
- Use 0 to get an infinite timeout with SendMessageTimeoutW().
- Use SendMessageTimeoutW() to send the WM_ENDSESSION messages too so
we don't get stuck if a process is hung.
- Only send WM_ENDSESSION to windows that received a
WM_QUERYENDSESSION message. Also better mimick the Windows behavior.
dlls/user/user_main.c