Zebediah Figura (@zfigura) commented about dlls/opengl32/make_opengl:
+ $ret .= " struct\n {\n"; + foreach my $arg (@{$func->[1]}) + { + my $ptype = get_wow64_arg_type( $arg ); + my $pname = get_arg_name( $arg ); + $ret .= " $ptype $pname;\n"; + $need_manual_thunk = 1 if $arg->textContent() =~ /\*.*\*/ || $arg->textContent() =~ /(sizei|int)ptr.*\*/; + } + if (!is_void_func($func)) + { + my $ptype = get_wow64_arg_type( $func->[0] ); + $ret .= " $ptype ret;\n"; + } + $ret .= " } *params32 = args;\n"; + + if ($need_manual_thunk || get_wow64_arg_type( $func->[0] ) =~ /PTR32/ || $name =~ /glPathGlyphIndexRangeNV/) I assume this is because glPathGlyphIndexRangeNV has an array argument; can we check for that instead of hardcoding the function name?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1355#note_15746