From: Fabian Maurer dark.shadow4@web.de
--- dlls/ntdll/unix/loader.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index 803d8079213..5ab33d447ea 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -1190,6 +1190,12 @@ static NTSTATUS find_builtin_dll( UNICODE_STRING *nt_name, void **module, SIZE_T } file[--pos] = '/';
+ /* + * When loading a builtin dll we still use the original nt_path for the object attributes. + * This may lead to the nt_path being different from the unix path, this is intentional. + * This is done because the application should not know the dll was substituted with a builtin one. + */ + if (build_dir) { /* try as a dll */