http://bugs.winehq.org/show_bug.cgi?id=14915
--- Comment #4 from Richard W.M. Jones rjones@redhat.com 2009-11-25 05:12:57 --- Created an attachment (id=24947) --> (http://bugs.winehq.org/attachment.cgi?id=24947) winsync.c
This still happens even with a recent version of Wine (1.1.32).
The handle is correct, but FlushFileBuffers returns ERROR_INVALID_HANDLE.