diff --git a/files/directory.c b/files/directory.c
index b687c233ca22ca695cc1640f270f09c270355f05..b1833eaf227ce3095e951a05cc0ebfa40edaf37f 100644
--- a/files/directory.c
+++ b/files/directory.c
@@ -577,14 +577,14 @@ DWORD DIR_SearchPath( LPCSTR path, LPCSTR name, LPCSTR ext,
 
     if (DOSFS_GetFullName( name, TRUE, full_name )) goto done;
 
-    /* Try the Windows directory */
+    /* Try the Windows system directory */
 
-    if (DIR_TryPath( &DIR_Windows, name, full_name ))
+    if (DIR_TryPath( &DIR_System, name, full_name ))
         goto done;
 
-    /* Try the Windows system directory */
+    /* Try the Windows directory */
 
-    if (DIR_TryPath( &DIR_System, name, full_name ))
+    if (DIR_TryPath( &DIR_Windows, name, full_name ))
         goto done;
 
     /* Try the path of the current executable (for Win16 search order) */