winedos: limit reported disk space to 1GB

Dan Kegel dank at kegel.com
Wed Jul 19 00:40:31 CDT 2006


Lotus SmartSuite 3.1 refuses to install unless the
reported disk space is "more reasonable".
This patch seems to do the trick, and fixes
http://bugs.winehq.org/show_bug.cgi?id=5711
I think the multiplication is safe up to disks
of a terabyte (2^40), since that would be 2^31 512-byte sectors.

All of the conformance tests for winedos still pass,
but that was easy, since there aren't any.

Changelog:
  winedos/int21.c: limit disk space reported by ah=36h to 1GB

 int21.c |   10 ++++++++++
 1 file changed, 10 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freespace.patch
Type: text/x-patch
Size: 846 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060718/6cfaf158/freespace.patch


More information about the wine-patches mailing list