mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[OPENGL32] Do not crash in IntGetCurrentDC if thread data was not allocated.
CORE-12232
This commit is contained in:
parent
a4ea17218f
commit
fa9ce98d8e
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ HDC
|
|||
IntGetCurrentDC(void)
|
||||
{
|
||||
struct Opengl32_ThreadData* data = TlsGetValue(OglTlsIndex);
|
||||
return data->hdc;
|
||||
return data ? data->hdc : NULL;
|
||||
}
|
||||
|
||||
static inline
|
||||
|
|
Loading…
Reference in a new issue