[Bug 40540] ReadFile overlapped not using ReadIntervalTimeout

wine-bugs at winehq.org wine-bugs at winehq.org
Sun May 15 01:46:55 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=40540

--- Comment #6 from Alex Henrie <alexhenrie24 at gmail.com> ---
40540Demo gives exactly the same output on both Wine and Windows.

Without USE_WAITFOREVENT:

    Hit key

    Waiting for the read operation to time out...
    Successfully read 'abcdefghijklmnopqrstuvwxyz' (27 bytes).
    Waiting for the read operation to time out...
    Successfully read 'abcdefghijklmnopqrstuvwxyz' (27 bytes).
    Waiting for the read operation to time out...
    Successfully read 'abcdefghijklmnopqrstuvwxyz' (27 bytes).
    Waiting for the read operation to time out...
    Successfully read 'abcdefghijklmnopqrstuvwxyz' (27 bytes).
    Waiting for the read operation to time out...
    Successfully read 'abcdefghijklmnopqrstuvwxyz' (27 bytes).
    Hit key


With USE_WAITFOREVENT:

    Hit key

    WaitForMultipleObjects failed with timeout
    WaitCommEvent failed with error 0x57
    Hit key


In case you didn't know, you can cross-compile Windows programs with `wineg++
-m32 foobar.cpp -o foobar` and run them with `wine foobar.exe.so`. I did have
to remove the '#include "stdafx.h"' and change "void main" to "int main" for
your programs to compile.

I assume that you tested this program on Windows before uploading it, and that
you didn't get an error. That would mean that there is something special about
your Windows setup. What version of Windows do you have? Is it 32 or 64-bit?
What happens if you compile and run your test programs on a slower computer?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list