opengl32: Mark invalid handles with ffff instead of 0.

This commit is contained in:
Alexandre Julliard 2012-07-16 14:50:01 +02:00
parent a0f9a251f9
commit 8b97ff3278
1 changed files with 1 additions and 1 deletions

View File

@ -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;