Commit 91bbc46c authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Try to use the name of the PE file also when loading .so builtin.

parent aa97c30b
......@@ -3481,7 +3481,6 @@ static void test_builtin_sxs(void)
GetModuleFileNameA(module_msvcp, path_msvcp, sizeof(path_msvcp));
GetModuleFileNameA(module_msvcr, path_msvcr, sizeof(path_msvcr));
ok(strnicmp(expected_path, path_msvcp, strlen(expected_path)) == 0, "Expected path to start with %s, got %s\n", expected_path, path_msvcp);
todo_wine
ok(strnicmp(expected_path, path_msvcr, strlen(expected_path)) == 0, "Expected path to start with %s, got %s\n", expected_path, path_msvcr);
DeactivateActCtx(0, cookie);
......
......@@ -2427,7 +2427,7 @@ static NTSTATUS load_so_dll( LPCWSTR load_path, const UNICODE_STRING *nt_name,
}
info.load_path = load_path;
info.filename = so_name ? NULL : nt_name;
info.filename = nt_name;
info.status = STATUS_SUCCESS;
info.wm = NULL;
......@@ -2528,7 +2528,9 @@ static NTSTATUS load_builtin_dll( LPCWSTR load_path, const UNICODE_STRING *nt_na
return load_native_dll( load_path, nt_name, module_ptr, &image_info, flags, pwm, &st );
}
return load_so_dll( load_path, nt_name, so_name, pwm );
status = load_so_dll( load_path, nt_name, so_name, pwm );
RtlFreeHeap( GetProcessHeap(), 0, so_name );
return status;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment