20 Dec
2007
20 Dec
'07
11:32 a.m.
"Kirill K. Smirnov" <lich(a)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(a)winehq.org