Correct search order in SearchPath for Win 3.1/95/98. Still broken for NT.

This commit is contained in:
Guy Albertelli 1999-06-05 11:47:25 +00:00 committed by Alexandre Julliard
parent a27807dca8
commit e40c9b0a94

View file

@ -577,16 +577,16 @@ DWORD DIR_SearchPath( LPCSTR path, LPCSTR name, LPCSTR ext,
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;