From: Jacek Caban <jacek(a)codeweavers.com> --- dlls/opengl32/make_opengl | 2 +- dlls/opengl32/unix_thunks.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/opengl32/make_opengl b/dlls/opengl32/make_opengl index 753639982a6..e0ecdca72a3 100755 --- a/dlls/opengl32/make_opengl +++ b/dlls/opengl32/make_opengl @@ -444,7 +444,7 @@ sub generate_unix_thunk($$$$) $ret .= " $ptype ret;\n"; } $ret .= " } *params = args;\n"; - if ($need_manual_thunk || get_wow64_arg_type( $func->[0] ) =~ /PTR32/) + if ($need_manual_thunk || $func->[0]->textContent() =~ /(GLsync|PROC|GLintptr|\*)/) { $ret .= " FIXME( \"params %p stub!\\n\", params );\n"; $ret .= " return STATUS_NOT_IMPLEMENTED;\n"; diff --git a/dlls/opengl32/unix_thunks.c b/dlls/opengl32/unix_thunks.c index d7e0a9301a0..8c61a45ab51 100644 --- a/dlls/opengl32/unix_thunks.c +++ b/dlls/opengl32/unix_thunks.c @@ -78249,8 +78249,10 @@ static NTSTATUS wow64_ext_wglGetCurrentReadDCARB( void *args ) PTR32 teb; PTR32 ret; } *params = args; - FIXME( "params %p stub!\n", params ); - return STATUS_NOT_IMPLEMENTED; + TEB *teb = get_teb64( params->teb ); + const struct opengl_funcs *funcs = teb->glTable; + params->ret = (UINT_PTR)funcs->p_wglGetCurrentReadDCARB(); + return STATUS_SUCCESS; } static NTSTATUS wow64_ext_wglGetPixelFormatAttribfvARB( void *args ) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8715