Correct search order in SearchPath for Win 3.1/95/98. Still broken for NT.
diff --git a/files/directory.c b/files/directory.c
index b687c23..b1833ea 100644
--- a/files/directory.c
+++ b/files/directory.c
@@ -577,16 +577,16 @@
if (DOSFS_GetFullName( name, TRUE, full_name )) goto done;
- /* Try the Windows directory */
-
- if (DIR_TryPath( &DIR_Windows, name, full_name ))
- goto done;
-
/* Try the Windows system directory */
if (DIR_TryPath( &DIR_System, name, full_name ))
goto done;
+ /* Try the Windows directory */
+
+ if (DIR_TryPath( &DIR_Windows, name, full_name ))
+ goto done;
+
/* Try the path of the current executable (for Win16 search order) */
if (!win32 && DIR_TryModulePath( name, full_name )) goto done;