- Timestamp:
- Aug 6, 2017 7:04:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Mouse/vboxms.c
r62529 r68307 655 655 656 656 /* We have no one below us to pass the message on to. */ 657 freemsg(pMBlk); 657 658 return 0; 658 659 /* M_IOCDATA is additional data attached to (at least) transparent … … 1196 1197 (void *)pCopyResp->cp_private)); 1197 1198 if (pCopyResp->cp_rval) /* cp_rval is a pointer used as a boolean. */ 1198 {1199 freemsg(pMBlk);1200 1199 return EAGAIN; 1201 }1202 1200 if ((pCopyResp->cp_private && enmDirection == BOTH) || enmDirection == IN) 1203 1201 { … … 1207 1205 1208 1206 if (!pMBlk->b_cont) 1209 return EINVAL;1210 if (enmDirection == BOTH && !pCopyResp->cp_private)1211 1207 return EINVAL; 1212 1208 pvData = pMBlk->b_cont->b_rptr; … … 1216 1212 else if (!err && enmDirection == IN) 1217 1213 vbmsSolAcknowledgeIOCtl(pMBlk, 0, 0); 1214 if ((err || enmDirection == IN) && pCopyResp->cp_private) 1215 freemsg(pCopyResp->cp_private); 1218 1216 return err; 1219 1217 } 1220 1218 else 1221 1219 { 1220 if (pCopyResp->cp_private) 1221 freemsg(pCopyResp->cp_private); 1222 1222 AssertReturn(enmDirection == OUT || enmDirection == BOTH, EINVAL); 1223 1223 vbmsSolAcknowledgeIOCtl(pMBlk, 0, 0);
Note:
See TracChangeset
for help on using the changeset viewer.