Module: wine Branch: master Commit: cc0ac7b43049f5a4eeaf5917b5f97cd12963a894 URL: https://gitlab.winehq.org/wine/wine/-/commit/cc0ac7b43049f5a4eeaf5917b5f97cd...
Author: Alexandre Julliard julliard@winehq.org Date: Sat Nov 12 17:02:18 2022 +0100
opengl32: Consistently use RtlSetLastWin32Error() everywhere.
---
dlls/opengl32/unix_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/opengl32/unix_private.h b/dlls/opengl32/unix_private.h index eb8adf00090..cab4b8fc502 100644 --- a/dlls/opengl32/unix_private.h +++ b/dlls/opengl32/unix_private.h @@ -45,7 +45,7 @@ extern struct opengl_funcs null_opengl_funcs DECLSPEC_HIDDEN; static inline struct opengl_funcs *get_dc_funcs( HDC hdc ) { struct opengl_funcs *funcs = __wine_get_wgl_driver( hdc, WINE_WGL_DRIVER_VERSION ); - if (!funcs) SetLastError( ERROR_INVALID_HANDLE ); + if (!funcs) RtlSetLastWin32Error( ERROR_INVALID_HANDLE ); else if (funcs == (void *)-1) funcs = &null_opengl_funcs; return funcs; }