From f8dc6ccd780fae1c8e2273c175b265f8c763146f Mon Sep 17 00:00:00 2001 From: Kevin Larke Date: Tue, 31 Mar 2015 11:18:56 -0700 Subject: [PATCH] cmGr.c : cmGrObjIsValid() now validates the cmGrH_t handle as well as the object handle. --- cmGr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmGr.c b/cmGr.c index 158b7d2..3bfaebb 100644 --- a/cmGr.c +++ b/cmGr.c @@ -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 )