[Bug 59176] New: MMIOINFO.lBufOffset incorrectly updated for unbuffered MMIO file handles
http://bugs.winehq.org/show_bug.cgi?id=59176 Bug ID: 59176 Summary: MMIOINFO.lBufOffset incorrectly updated for unbuffered MMIO file handles Product: Wine Version: 11.0-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winmm&mci Assignee: wine-bugs@list.winehq.org Reporter: hyouta.curtiss@gmail.com Distribution: --- Created attachment 80033 --> http://bugs.winehq.org/attachment.cgi?id=80033 Source code that reproduces the bug. Compile as 32-bit, link to Winmm.lib For unbuffered MMIO file handles, lBufOffset is not updated the same way as on Windows. On Windows, mmioRead() updates lBufOffset and mmioSeek() does not update lBufOffset, while on Wine the exact opposite happens. The attached program shows the bug. On a real Windows system (Windows 10) this outputs: ``` info.lBufOffset: 0 info.lDiskOffset: 0 info.lBufOffset: 10 info.lDiskOffset: 0 info.lBufOffset: 40 info.lDiskOffset: 40 info.lBufOffset: 60 info.lDiskOffset: 40 ``` but under Wine it instead outputs: ``` info.lBufOffset: 0 info.lDiskOffset: 0 info.lBufOffset: 10 info.lDiskOffset: 10 info.lBufOffset: 10 info.lDiskOffset: 40 info.lBufOffset: 60 info.lDiskOffset: 60 ``` -- 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.
http://bugs.winehq.org/show_bug.cgi?id=59176 --- Comment #1 from hyouta.curtiss@gmail.com --- Sorry, on rereading I notice that that the thing mmioSeek() does not update is *lDiskOffset*, not lBufOffset. -- 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.
participants (1)
-
WineHQ Bugzilla