opengl32: Mark invalid handles with ffff instead of 0.
This commit is contained in:
parent
a0f9a251f9
commit
8b97ff3278
|
@ -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 )
|
static void free_handle_ptr( struct wgl_handle *ptr )
|
||||||
{
|
{
|
||||||
ptr->handle &= ~0xffff;
|
ptr->handle |= 0xffff;
|
||||||
ptr->context = (struct wgl_context *)next_free;
|
ptr->context = (struct wgl_context *)next_free;
|
||||||
ptr->funcs = NULL;
|
ptr->funcs = NULL;
|
||||||
next_free = ptr;
|
next_free = ptr;
|
||||||
|
|
Loading…
Reference in New Issue