wgl: Prevent null pointer reference.

This commit is contained in:
José Fonseca 2009-02-20 11:35:46 +00:00
parent ee4e4a6b96
commit a5c2570dc5

View file

@ -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);