[Bug 25733] Magic the Gathering: DotP is really slow loading a match

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jan 8 18:09:13 CST 2011


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

--- Comment #1 from Per Johansson <per at morth.org> 2011-01-08 18:09:12 CST ---
This simple diff helps quite a bit, bringing it down from about 3 minutes to
under one minute. It only works since I'm using a case insensitive native
filesystem, obviously.

diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index 711a0b0..50b3c54 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -1824,6 +1824,7 @@ static NTSTATUS find_file_in_dir( char *unix_name, int
pos, const WCHAR *name, i
             if (is_win_dir) *is_win_dir = is_same_file( &windir, &st );
             return STATUS_SUCCESS;
         }
+       goto not_found;
     }
     if (check_case) goto not_found;  /* we want an exact match */

-- 
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