mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:53:07 +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)
|
IntGetCurrentDC(void)
|
||||||
{
|
{
|
||||||
struct Opengl32_ThreadData* data = TlsGetValue(OglTlsIndex);
|
struct Opengl32_ThreadData* data = TlsGetValue(OglTlsIndex);
|
||||||
return data->hdc;
|
return data ? data->hdc : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline
|
static inline
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue