From: Rémi Bernon <rbernon(a)codeweavers.com> This fixes incorrect hint values generated by dlltool: instead of the index in the name table, it used the ordinal value, which almost always ends up in a hint lookup failure and a fallback to binary search. --- tools/winebuild/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index dce354c630a..7b23322aba9 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c @@ -1901,7 +1901,7 @@ static void build_windows_import_lib( const char *lib_name, DLLSPEC *spec, struc { output( "\n\t.section \".idata$6\"\n" ); output( ".L__wine_import_name:\n" ); - output( "\t.short %d\n", odp->ordinal ); + output( "\t.short %d\n", odp->hint ); output( "\t%s \"%s\"\n", get_asm_string_keyword(), name ); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1001