opengl32: Fix get_current_context_type() to not shift the type bits down.

The result is compared directly with handle type values like HANDLE_CONTEXT
whose meaningful values are in the high nibble.
This commit is contained in:
Ken Thomases 2015-02-02 15:51:42 -06:00 committed by Alexandre Julliard
parent 9defaa53a1
commit 4a6743e913

View File

@ -165,7 +165,7 @@ static void free_handle_ptr( struct wgl_handle *ptr )
static inline enum wgl_handle_type get_current_context_type(void)
{
if (!NtCurrentTeb()->glCurrentRC) return HANDLE_CONTEXT;
return (LOWORD(NtCurrentTeb()->glCurrentRC) & HANDLE_TYPE_MASK) >> 12;
return LOWORD(NtCurrentTeb()->glCurrentRC) & HANDLE_TYPE_MASK;
}
/***********************************************************************