Author: jgardou Date: Fri Oct 31 11:35:32 2014 New Revision: 65143
URL: http://svn.reactos.org/svn/reactos?rev=65143&view=rev Log: [OPENGL32] - Do not crash if thread data was not allocated
Modified: trunk/reactos/dll/opengl/opengl32/opengl32.h
Modified: trunk/reactos/dll/opengl/opengl32/opengl32.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/opengl/opengl32/opengl3... ============================================================================== --- trunk/reactos/dll/opengl/opengl32/opengl32.h [iso-8859-1] (original) +++ trunk/reactos/dll/opengl/opengl32/opengl32.h [iso-8859-1] Fri Oct 31 11:35:32 2014 @@ -137,7 +137,7 @@ IntGetCurrentRC(void) { struct Opengl32_ThreadData* data = TlsGetValue(OglTlsIndex); - return data->hglrc; + return data ? data->hglrc : NULL; }
static inline