diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index 71d7ecd..ef66b50 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -1977,6 +1977,9 @@ static NTSTATUS load_dll( LPCWSTR load_path, LPCWSTR libname, DWORD flags, WINE_ case LO_DEFAULT: /* default is builtin,native */ nts = load_builtin_dll( load_path, filename, handle, flags, pwm ); if (!handle) break; /* nothing else we can try */ + /* file is not a builtin library, if we we have a real file, try native */ + if (nts == STATUS_INVALID_IMAGE_FORMAT && handle && loadorder != LO_BUILTIN) + nts = load_native_dll( load_path, filename, handle, flags, pwm ); /* file is not a builtin library, try without using the specified file */ if (nts != STATUS_SUCCESS) nts = load_builtin_dll( load_path, filename, 0, flags, pwm );