http://bugs.winehq.org/show_bug.cgi?id=28982
--- Comment #15 from Andrew Eikum aeikum@codeweavers.com 2011-11-30 10:49:13 CST --- (In reply to comment #14)
Created attachment 37706 [details] Add tests for mmioRead
Well, I did some tests bit earlier than expected. I'll add it here as attachment, so you can check if it looks good.
Since the bug only appears on direct read to file (unbuffered handle, or whatever you want to call it) I added wname variable there which can be pointed to .wav file in example.
Tested without patch and it fails, with patch it succeeds. MMIO's handled in memory succeed with and without.
This needs some more work, I think. I have a WAV file which returns 4 from the last mmioRead(..., 8) on Windows 7. That also makes sense to me, that mmioRead() would return the most it could read before EOF.
Can you describe exactly what the program is doing that leads to the crash?