<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div><span>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 <a target="_blank" href="http://msdn.microsoft.com/en-us/library/ms712171%28v=VS.85%29.aspx">http://msdn.microsoft.com/en-us/library/ms712171%28v=VS.85%29.aspx</a>) to work out dwFileSize rather than the value returned by the call to send_message.</span><br><br>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.<br><br>Tested on Ubuntu 10.04.<br></div>
</div><br>
</body></html>