Browse Source

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

master
Kevin Larke 9 years ago
parent
commit
f8dc6ccd78
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cmGr.c

+ 1
- 1
cmGr.c View File

1173
 }
1173
 }
1174
 
1174
 
1175
 cmGrRC_t cmGrObjIsValid( cmGrH_t h, cmGrObjH_t  oh )
1175
 cmGrRC_t cmGrObjIsValid( cmGrH_t h, cmGrObjH_t  oh )
1176
-{ return oh.h != NULL; }
1176
+{ return h.h!=NULL && oh.h != NULL; }
1177
 
1177
 
1178
 
1178
 
1179
 unsigned   cmGrObjId(        cmGrObjH_t oh )
1179
 unsigned   cmGrObjId(        cmGrObjH_t oh )

Loading…
Cancel
Save