ntdll: Don't try to open the file in the prefix for 16-bit builtins.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-04-08 18:16:15 +02:00
parent 7cea94349a
commit 277a5728da
1 changed files with 6 additions and 0 deletions

View File

@ -2730,6 +2730,12 @@ static NTSTATUS find_dll_file( const WCHAR *load_path, const WCHAR *libname, con
status = STATUS_SUCCESS;
goto done;
}
/* 16-bit files can't be loaded from the prefix */
if (libname[0] && libname[1] && !wcscmp( libname + wcslen(libname) - 2, L"16" ))
{
status = find_builtin_without_file( libname, nt_name, pwm, mapping, image_info, id );
goto done;
}
}
}