diff --git a/reactos/dll/opengl/opengl32/opengl32.h b/reactos/dll/opengl/opengl32/opengl32.h index d26f1071616..b3e0bd08f8f 100644 --- a/reactos/dll/opengl/opengl32/opengl32.h +++ b/reactos/dll/opengl/opengl32/opengl32.h @@ -137,7 +137,7 @@ HGLRC IntGetCurrentRC(void) { struct Opengl32_ThreadData* data = TlsGetValue(OglTlsIndex); - return data->hglrc; + return data ? data->hglrc : NULL; } static inline