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(a)winehq.org
ReportedBy: wsapplegate(a)myrealbox.com
Executive summary :
~~~~~~~~~~~~~~~~~~~
Fallout is an old (circa …
[View More]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
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[View Less]
http://bugs.winehq.org/show_bug.cgi?id=824
------- Additional Comments From randy.galbraith(a)cox.net 2004-10-10 00:05 -------
I would like to see if I could resolve this bug. However, I'm having some
difficulty understanding the exact nature of the original description. In
particular, can the import/export steps below be reproduce on Windows XP or just
Windows 95/98/ME? I.e., does Unicode support get in the way?
Here is an example program I wrote in an attempt to recreate this issue:
…
[View More]http://members.cox.net/~rgalbraith10/wine/bug824/demo824.chttp://members.cox.net/~rgalbraith10/wine/bug824/Makefile
When this program is run on Windows XP (compiled with gcc under cygwin) the
exported registry looks like this:
[HKEY_CURRENT_USER\Software\Wine\Bug824]
"Empty Value0"=hex(7):
"Empty Value1"=hex(7):00,00
"Empty Value2"=hex(7):01,00,00,00
When the program is run under Wine (20040914) the exported registry looks like this:
[HKEY_USERS\randy\Software\Wine\Bug824]
"Empty Value0"=hex(7):00
"Empty Value1"=hex(7):00
"Empty Value2"=hex(7):01,00
So, we can see "Empty Value0" is reporting "00" (which is the issue at hand).
However, what am I to make of Windows XP's "00,00" and "01,00,00,00"? I assume
this is because Unicode support, but is part a worry?
Interestingly user.reg in Wine stores these entries as this:
[Software\\Wine\\Bug824] 1097383218
"Empty Value0"=str(7):""
"Empty Value1"=str(7):""
"Empty Value2"=str(7):"\1"
Would it be correct to assume the basic issue is the choice of "str(7)" as the
data type for REG_MULTI_SZ?
Since this is my first ever post to Wine/Bugzilla, I would appreciate any
helpful netiquette points (i.e. should I post to mailing list/newsgroup first,
are URLs (as above) preferred over attachments).
Kind regards,
-Randy Galbraith
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[View Less]
http://bugs.winehq.org/show_bug.cgi?id=2502
tony_lambregts(a)telusplanet.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
------- Additional Comments From tony_lambregts(a)telusplanet.net 2004-08-10 18:35 -------
Closing
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: --…
[View More]-----
You are the assignee for the bug, or are watching the assignee.
[View Less]
http://bugs.winehq.org/show_bug.cgi?id=2502
Andrew.Talbot(a)talbotville.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From Andrew.Talbot(a)talbotville.com 2004-08-10 17:29 -------
It seems to have been a glitch on my system. It has gone away now.
-- …
[View More]
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[View Less]
http://bugs.winehq.org/show_bug.cgi?id=2505
tony_lambregts(a)telusplanet.net changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://www.rimarts.co.jp
Keywords| |download, NoAppDBEntry
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You …
[View More]are the assignee for the bug, or are watching the assignee.
[View Less]
Never think your not pleasing a girl again with a huge c0x!
http://deregoy.com/9/4/index.php?aiw90&com5&
P63N9lk864676r5s2VYLet's just walk upside down backwards.I ought, therefore, as the elephant was sideways onDropped an advolt on his head!437792957