"Kirill K. Smirnov" <[EMAIL PROTECTED]> writes:
> @@ -378,10 +381,7 @@ BOOL WINAPI CloseConsoleHandle(HANDLE handle)
> */
> HANDLE WINAPI GetConsoleInputWaitHandle(void)
> {
> - static HANDLE console_wait_event;
> -
> - /* FIXME: this is not thread safe */
> - if (!console_wait_event)
> + if (console_wait_event == INVALID_HANDLE_VALUE)0 and INVALID_HANDLE_VALUE are not the same thing. The correct value to use for invalid events is 0. -- Alexandre Julliard [EMAIL PROTECTED]
