Piotr Caban <[email protected]> writes:

> This function is not safe under Windows 7. I was testing it with
> following program:
>
> static DWORD WINAPI block_stdin(void *arg)
> {
>       _lock_file(stdout);
>       return 0;
> }
>
> int main( )
> {
>       DWORD thread_id;
>
>       CreateThread(NULL, 0, block_stdin, NULL, 0, &thread_id);
>       Sleep(500);
>       _flsbuf(32, stdout);
>       return 0;
> }
>
> It terminates in Windows 7. It never ends with Wine both with and
> without my patch (because of locks in fputc and fwrite).

OK then. Are you planning to add test cases for this?

-- 
Alexandre Julliard
[email protected]


Reply via email to