Re: kernel32: invalidate local copy of console input event handle while reallocating console.
Dec. 20, 2007
5: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
6672
Age (days ago)
6672
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard