diff -urN wine-7.4-orig/dlls/ntdll/loader.c wine-7.4/dlls/ntdll/loader.c
--- wine-7.4-orig/dlls/ntdll/loader.c	2022-03-12 05:45:50 +0900
+++ wine-7.4/dlls/ntdll/loader.c	2022-03-23 20:19:54 +0900
@@ -3002,12 +3002,16 @@
         if ((status = RtlDosPathNameToNtPathName_U_WithStatus( name, nt_name, NULL, NULL ))) goto done;
 
         status = open_dll_file( nt_name, pwm, mapping, image_info, id );
+        if (status != STATUS_DLL_NOT_FOUND) TRACE( "found %s in search path at %s\n", debugstr_w(search), debugstr_w(name) );
         if (status == STATUS_IMAGE_MACHINE_TYPE_MISMATCH) found_image = TRUE;
         else if (status != STATUS_DLL_NOT_FOUND) goto done;
         RtlFreeUnicodeString( nt_name );
         paths = ptr;
     }
 
+    if (!found_image)
+        TRACE( "module %s not found\n", debugstr_w(nt_name) );
+
     if (found_image) status = STATUS_IMAGE_MACHINE_TYPE_MISMATCH;
 
 done:
@@ -3033,6 +3037,8 @@
     /* Win 7/2008R2 and up seem to re-enable WoW64 FS redirection when loading libraries */
     RtlWow64EnableFsRedirectionEx( 0, &wow64_old_value );
 
+    TRACE( "looking for %s\n", debugstr_w(libname) );
+
     nt_name->Buffer = NULL;
 
     if (!contains_path( libname ))
@@ -3058,6 +3064,8 @@
         }
     }
 
+    TRACE( "trying to load %s\n", debugstr_w(libname) );
+
     if (RtlDetermineDosPathNameType_U( libname ) == RELATIVE_PATH)
     {
         status = search_dll_file( load_path, libname, nt_name, pwm, mapping, image_info, id );
@@ -3070,6 +3078,7 @@
     if (status == STATUS_IMAGE_MACHINE_TYPE_MISMATCH) status = STATUS_INVALID_IMAGE_FORMAT;
 
 done:
+    TRACE( "returning filename %s for module %s\n", debugstr_us(nt_name), debugstr_w(libname) );
     RtlFreeHeap( GetProcessHeap(), 0, fullname );
     if (wow64_old_value) RtlWow64EnableFsRedirectionEx( 1, &wow64_old_value );
     return status;
