Re: not enough disk space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tolosthemagician@xxxxxxxxx wrote:
> update:
>
> for whatever reason, setting windows version to windows 98 for
> photoshop 7 fixes the mini windows from going invisible.
>
>
> now to just figure out how to manually extract the world of warcraft
> patch...

actually switching to windows 98 didn't fix the problem.

and I found out, it's not really a problem. Apparently what happens, is
in stead of the mini-windows being contained in photoshop, they're
contained in my virtual desktop. So what would happen is they would be
pulled underneath my photoshop window where I couldn't find them. So I
got that worked out.

I still don't have a fix for why my drives are being reported
incorrectly, but I think I found some useful information:

http://www.winehq.org/pipermail/wine-bugs/2004-October/010906.html

Sun Oct 10 03:49:12 CDT 2004

http://bugs.winehq.org/show_bug.cgi?id=2506

           Summary: Fallout installer reports incorrect disk space
           Product: Wine
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: wine-kernel
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: wsapplegate at myrealbox.com


Executive summary :
~~~~~~~~~~~~~~~~~~~

Fallout is an old (circa 1997) RPG, published by Interplay. The game
doesn't use a standard installer (like InstallShield or similar).
Rather, Interplay did write a custom installer. While recently trying
to reinstall this game, I was confronted to a weird problem : the
reported disk space was about 268 MiB instead of 2147 MiB as previously
reported. Both values are in fact incorrect (the hard disk has much
more than 2 GiB), but the latter allows for a complete installation,
while the former only allows a limited installation, the remainder
being read from the CD-ROM.

Analysis :
~~~~~~~~~~
A quick investigation shows that the problem only occurs since WINE
20040505. Not coincidentally, this version contains changes to the
GetDiskFreeSpace* functions. Tracing the _SETUP.EXE function calls, it
indeed appears it makes calls to GetDiskFreeSpaceA(), which in turn
calls GetDiskFreeSpaceW(). This functions returns values capped at 2
GiB, with the following parameters : 4096 bytes per sector, 1 sector
per cluster, 524287 clusters. From the behaviour exhibited by the
installer, it unfortunately appears the programmers used a 16-bit sized
variable to store the clusters value, thus generating incorrect results
when this number is above 65535, as reported by the new
GetDiskFreeSpaceW().

How to reproduce :
~~~~~~~~~~~~~~~~~~
You need (1) a HDD with more than 2 GiB free space and (2) a copy of
Fallout. Then, execute the following steps (assuming your CD-ROM is
mounted as D:)

* run "wine 'd:\\_setup.exe'"
* notice the free space reported for the hard disk is incorrect

Solutions and workarounds :
~~~~~~~~~~~~~~~~~~~~~~~~~~~
I personally solved the problem by kludging the GetDiskFreeSpaceW()
function in dlls/kernel/volume.c to report a number of cluster below
65535 (for a 2 GiB disk, it reports 512 bytes * 64 sectors * 65535
clusters), but it's most probably incorrect (these values are not
consistent with the values reported by NtQueryVolumeInformationFile()).
If you run an affected version, a possible workaround is to install the
game partially, copy the missing files manually, then edit the file
fallout.cfg in the installation directory, and edit the paths by hand.

_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux