cmProc4.c:Check for valid parameters in _cmScModActivate()

This commit is contained in:
kevin 2013-08-12 16:39:49 -07:00
parent 0dd72e910c
commit a91cf15a24

View File

@ -3985,14 +3985,17 @@ cmRC_t _cmScModActivate(cmScModulator* p, cmScModEntry_t* ep )
cmScModVar_t* vp = ep->varPtr;
// optionally update the min/max/rate values in the target var
if((rc = _cmScModGetParam(p,&ep->min,&vp->min)) != cmOkRC )
goto errLabel;
if( ep->min.pid != kInvalidModPId )
if((rc = _cmScModGetParam(p,&ep->min,&vp->min)) != cmOkRC )
goto errLabel;
if((rc = _cmScModGetParam(p,&ep->max,&vp->max)) != cmOkRC )
goto errLabel;
if( ep->max.pid != kInvalidModPId )
if((rc = _cmScModGetParam(p,&ep->max,&vp->max)) != cmOkRC )
goto errLabel;
if((rc = _cmScModGetParam(p,&ep->rate,&vp->rate)) != cmOkRC )
goto errLabel;
if( ep->rate.pid != kInvalidModPId )
if((rc = _cmScModGetParam(p,&ep->rate,&vp->rate)) != cmOkRC )
goto errLabel;
switch( ep->typeId )