dlls/winmm/mmio: Correctly calculate dwFileSize for apps installing their own IOproc.

Tim Cadogan-Cowper tccowper at yahoo.com.au
Sun Jun 27 06:20:04 CDT 2010


Correctly calculate dwFileSize for apps that install their own IOproc, by sending seek messages to the IOproc rather than using _llseek and assuming that wm->info.adwInfo[0] is a HFILE.  Similar to the tentative patch proposed by Eric Pouech (bug 21609), but relies on the wm->info.lDiskOffset attribute (which IO procs must set themselves according to http://msdn.microsoft.com/en-us/library/ms712171%28v=VS.85%29.aspx) to work out dwFileSize rather than the value returned by the call to send_message.

Have tested and can confirm that this patch fixes bug 21609 and bug 23249 insofar as these relate to Oblivion.  Unable to test whether these bugs are fixed for other affected apps.  May also fix bug 23289.

Tested on Ubuntu 10.04.



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100627/82b1cbe3/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Correctly-calculate-dwFileSize-for-apps-that-install-t.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100627/82b1cbe3/attachment.txt>


More information about the wine-patches mailing list