Commit cc0ac7b4 authored by Alexandre Julliard's avatar Alexandre Julliard

opengl32: Consistently use RtlSetLastWin32Error() everywhere.

parent e0378225
......@@ -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;
}
......
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