winmm/mmio: Add extra handling for unbuffered MMIO handles

Jari Vetoniemi mailroxas at gmail.com
Wed Nov 16 11:50:43 CST 2011


On non buffered mmioSeek, set the lBufOffset accordingly.
On non buffered mmioRead, seek to beginning of the file and return 0
meaning that the file ended.

I don't know if this just reveals bad programming in application,
or that native winmm likes to try handle code when it's wrongly used..

Fixes crashing on unbuffered cases.
Bug #28982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-extra-handling-for-unbuffered-MMIO-handles.patch
Type: application/octet-stream
Size: 1827 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20111116/bf869a74/attachment.obj>


More information about the wine-patches mailing list