wgl: Fix null pointer reference.

This commit is contained in:
José Fonseca 2009-02-10 11:50:54 +00:00
parent 9fb9ee9d24
commit 67e988a06c

View file

@ -89,6 +89,9 @@ lookup_context( DHGLRC dhglrc )
dhglrc >= DRV_CONTEXT_MAX)
return NULL;
if(!stw_icd)
return NULL;
return stw_icd->ctx_array[dhglrc - 1].ctx;
}