From a8fa5394ef802757023a70870fafce7421a02204 Mon Sep 17 00:00:00 2001 From: Bernhard Feichtinger <43303168+BieHDC@users.noreply.github.com> Date: Sat, 13 Apr 2019 23:24:21 +0200 Subject: [PATCH] [OPENGL32] Fix usage of TEB members. --- dll/opengl/opengl32/opengl32.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dll/opengl/opengl32/opengl32.h b/dll/opengl/opengl32/opengl32.h index 8808ca55ff5..32b4f35b32e 100644 --- a/dll/opengl/opengl32/opengl32.h +++ b/dll/opengl/opengl32/opengl32.h @@ -134,7 +134,7 @@ IntMakeCurrent(HGLRC hglrc, HDC hdc, struct wgl_dc_data* dc_data) CurrentTeb->glCurrentRC = hglrc; CurrentTeb->glReserved2 = hdc; - CurrentTeb->glContext = dc_data; + CurrentTeb->glSectionInfo = dc_data; } FORCEINLINE @@ -155,21 +155,21 @@ static inline struct wgl_dc_data* IntGetCurrentDcData(void) { - return NtCurrentTeb()->glContext; + return NtCurrentTeb()->glSectionInfo; } FORCEINLINE void IntSetCurrentICDPrivate(void* value) { - NtCurrentTeb()->glReserved1[0] = (ULONG_PTR)value; + NtCurrentTeb()->glContext = value; } FORCEINLINE void* IntGetCurrentICDPrivate(void) { - return (void*)NtCurrentTeb()->glReserved1[0]; + return (void*)NtCurrentTeb()->glContext; } FORCEINLINE