[Bug 34122] Civilization V breaks both expansion packs are installed due to FindFirstFile implementation

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Oct 16 13:43:09 CDT 2013


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

olelukoie <olelukoie at mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olelukoie at mail.ru

--- Comment #9 from olelukoie <olelukoie at mail.ru> 2013-10-16 13:43:09 CDT ---
I think this is not a bug in WINE but the bug in the game. The game developers
do rely on an NTFS file system driver feature instead of carefully read MSDN.
Here's the link to FindFisrtFile description:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa364418%28v=vs.85%29.aspx

You can find there the following:

[quote]
Remarks

The FindFirstFile function opens a search handle and returns information about
the first file that the file system finds with a name that matches the
specified pattern. This may or may not be the first file or directory that
appears in a directory-listing application (such as the dir command) when given
the same file name string pattern. This is because FindFirstFile does no
sorting of the search results. For additional information, see FindNextFile.
[/quote]

You can reproduce this "bug" by using FAT32 instead of NTFS under Windows.
FAT/FAT32 driver returns files in the creation time order instead of
alphabetical one. This means that if you create the files or dirs with names
"1", "3", "2" on FAT partition then you'll get them in the same order and not
in 1-2-3 one.

BTW ntfs-3g driver under Linux sorts the files so installing the game on NTFS
or FAT partition could be a solution for the problem.

To check the real order of files and dirs in any FS-driver under Linux you can
use 'ls -l --sort=no' command.


PS. It would be really great to have an option (command line option or
environment variable) to imitate NTFS driver behavior (file sorting) in WINE.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list