Alexandre Julliard : opengl32: Mark invalid handles with ffff instead of 0.
Module: wine Branch: master Commit: 8b97ff3278d98e1b9db55a028cc902f5b690c02a URL: http://source.winehq.org/git/wine.git/?a=commit;h=8b97ff3278d98e1b9db55a028c... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jul 16 14:50:01 2012 +0200 opengl32: Mark invalid handles with ffff instead of 0. --- dlls/opengl32/wgl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index 815dc42..4545cfa 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -164,7 +164,7 @@ static HGLRC alloc_handle( struct wgl_context *context, const struct wgl_funcs * static void free_handle_ptr( struct wgl_handle *ptr ) { - ptr->handle &= ~0xffff; + ptr->handle |= 0xffff; ptr->context = (struct wgl_context *)next_free; ptr->funcs = NULL; next_free = ptr;
participants (1)
-
Alexandre Julliard