commit | 8b97ff3278d98e1b9db55a028cc902f5b690c02a | [log] [tgz] |
---|---|---|
author | Alexandre Julliard <julliard@winehq.org> | Mon Jul 16 14:50:01 2012 +0200 |
committer | Alexandre Julliard <julliard@winehq.org> | Mon Jul 16 15:21:47 2012 +0200 |
tree | 4df0a416e94caffc9b905ac838d558221a03a00b | |
parent | a0f9a251f94ef21b5af63d01f9120f30a71e8c22 [diff] |
opengl32: Mark invalid handles with ffff instead of 0.
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 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;