cmGr.c : cmGrObjIsValid() now validates the cmGrH_t handle as well as the object handle.
This commit is contained in:
parent
4cd55db162
commit
f8dc6ccd78
2
cmGr.c
2
cmGr.c
@ -1173,7 +1173,7 @@ cmGrRC_t cmGrObjDestroy( cmGrH_t h, cmGrObjH_t* ohp )
|
|||||||
}
|
}
|
||||||
|
|
||||||
cmGrRC_t cmGrObjIsValid( cmGrH_t h, cmGrObjH_t oh )
|
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 )
|
unsigned cmGrObjId( cmGrObjH_t oh )
|
||||||
|
Loading…
Reference in New Issue
Block a user