From 4a6743e91353ffa8cfdf5183c6518bd95327a835 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Mon, 2 Feb 2015 15:51:42 -0600 Subject: [PATCH] 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. --- dlls/opengl32/wgl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index cb91699d2b5..6ff54f0dfb0 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -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; } /*********************************************************************** -- 2.11.4.GIT