mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
wgl: Prevent null pointer reference.
This commit is contained in:
parent
ee4e4a6b96
commit
a5c2570dc5
1 changed files with 3 additions and 0 deletions
|
|
@ -178,6 +178,9 @@ stw_delete_context(
|
|||
struct stw_context *ctx ;
|
||||
BOOL ret = FALSE;
|
||||
|
||||
if (!stw_dev)
|
||||
return FALSE;
|
||||
|
||||
pipe_mutex_lock( stw_dev->mutex );
|
||||
|
||||
ctx = stw_lookup_context(hglrc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue