• Francois Gouget's avatar
    user: Fix ExitWindows(). · 6edd7722
    Francois Gouget authored
    - 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.
    6edd7722
user_main.c 11.5 KB