http://bugs.winehq.org/show_bug.cgi?id=20748
--- Comment #3 from Hans Leidekker hans@meelstraat.net 2009-11-18 15:29:10 ---
I don't think so - if PENDING is returned by read, it gets the real status, which is definitely not going to be PENDING.
Right, and if 0 is returned by read, it doesn't get the real status and the second test fails. Ergo, read does not return 0 on Windows. (although the first test accepting it suggests that it's possible.)