Francois Gouget wrote:
if (SendMessageTimeoutW( *phwnd, WM_QUERYENDSESSION, 0, 0, send_flags, INFINITE, &result) && !result) break;
if (SendMessageTimeoutW( *phwnd, WM_QUERYENDSESSION, 0, 0, send_flags, 0, &result))
Was this change deliberate to remove the check of result? If so, I don't see where else the result of the message can be properly checked.