cmGr.c : cmGrObjIsValid() now validates the cmGrH_t handle as well as the object handle.

This commit is contained in:
Kevin Larke 2015-03-31 11:18:56 -07:00
parent 4cd55db162
commit f8dc6ccd78

2
cmGr.c
View File

@ -1173,7 +1173,7 @@ cmGrRC_t cmGrObjDestroy( cmGrH_t h, cmGrObjH_t* ohp )
}
cmGrRC_t cmGrObjIsValid( cmGrH_t h, cmGrObjH_t oh )
{ return oh.h != NULL; }
{ return h.h!=NULL && oh.h != NULL; }
unsigned cmGrObjId( cmGrObjH_t oh )