[OPENGL32] Do not crash in IntGetCurrentDC if thread data was not allocated.

CORE-12232
This commit is contained in:
Mark Jansen 2017-11-05 21:23:55 +01:00
parent a4ea17218f
commit fa9ce98d8e

View file

@ -154,7 +154,7 @@ HDC
IntGetCurrentDC(void)
{
struct Opengl32_ThreadData* data = TlsGetValue(OglTlsIndex);
return data->hdc;
return data ? data->hdc : NULL;
}
static inline