Commit 8b97ff32 authored by Alexandre Julliard's avatar Alexandre Julliard

opengl32: Mark invalid handles with ffff instead of 0.

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