kernel32: invalidate local copy of console input event handle while reallocating console.
Alexandre Julliard
julliard at winehq.org
Thu Dec 20 05:32:03 CST 2007
"Kirill K. Smirnov" <lich at math.spbu.ru> 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
julliard at winehq.org
More information about the wine-devel
mailing list