Changeset 44945 in vbox
- Timestamp:
- Mar 7, 2013 8:53:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r44935 r44945 565 565 CALLBACKDATA_PROC_INPUT dataCb; 566 566 /* pSvcCb->mpaParms[0] always contains the context ID. */ 567 pSvcCbData->mpaParms[1].getUInt32(&dataCb.uPID); 568 pSvcCbData->mpaParms[2].getUInt32(&dataCb.uStatus); 569 pSvcCbData->mpaParms[3].getUInt32(&dataCb.uFlags); 570 pSvcCbData->mpaParms[4].getUInt32(&dataCb.uProcessed); 567 int vrc = pSvcCbData->mpaParms[1].getUInt32(&dataCb.uPID); 568 AssertRCReturn(vrc, vrc); 569 vrc = pSvcCbData->mpaParms[2].getUInt32(&dataCb.uStatus); 570 AssertRCReturn(vrc, vrc); 571 vrc = pSvcCbData->mpaParms[3].getUInt32(&dataCb.uFlags); 572 AssertRCReturn(vrc, vrc); 573 vrc = pSvcCbData->mpaParms[4].getUInt32(&dataCb.uProcessed); 574 AssertRCReturn(vrc, vrc); 571 575 572 576 LogFlowThisFunc(("uPID=%RU32, uStatus=%RU32, uFlags=%RI32, cbProcessed=%RU32, pCallback=%p\n", 573 577 dataCb.uPID, dataCb.uStatus, dataCb.uFlags, dataCb.uProcessed, pCallback)); 574 578 575 int vrc = checkPID(dataCb.uPID); 576 if (RT_FAILURE(vrc)) 577 return vrc; 579 vrc = checkPID(dataCb.uPID); 580 AssertRCReturn(vrc, vrc); 578 581 579 582 /* First, signal callback in every case (if available). */ … … 620 623 CALLBACKDATA_PROC_STATUS dataCb; 621 624 /* pSvcCb->mpaParms[0] always contains the context ID. */ 622 pSvcCbData->mpaParms[1].getUInt32(&dataCb.uPID); 623 pSvcCbData->mpaParms[2].getUInt32(&dataCb.uStatus); 624 pSvcCbData->mpaParms[3].getUInt32(&dataCb.uFlags); 625 pSvcCbData->mpaParms[4].getPointer(&dataCb.pvData, &dataCb.cbData); 625 int vrc = pSvcCbData->mpaParms[1].getUInt32(&dataCb.uPID); 626 AssertRCReturn(vrc, vrc); 627 vrc = pSvcCbData->mpaParms[2].getUInt32(&dataCb.uStatus); 628 AssertRCReturn(vrc, vrc); 629 vrc = pSvcCbData->mpaParms[3].getUInt32(&dataCb.uFlags); 630 AssertRCReturn(vrc, vrc); 631 vrc = pSvcCbData->mpaParms[4].getPointer(&dataCb.pvData, &dataCb.cbData); 632 AssertRCReturn(vrc, vrc); 626 633 627 634 LogFlowThisFunc(("uPID=%RU32, uStatus=%RU32, uFlags=%RU32, pCallback=%p, pSvcCbData=%p\n", 628 635 dataCb.uPID, dataCb.uStatus, dataCb.uFlags, pCallback, pSvcCbData)); 629 636 630 int vrc = checkPID(dataCb.uPID); 631 if (RT_FAILURE(vrc)) 632 return vrc; 637 vrc = checkPID(dataCb.uPID); 638 AssertRCReturn(vrc, vrc); 633 639 634 640 ProcessStatus_T procStatus = ProcessStatus_Undefined; … … 778 784 CALLBACKDATA_PROC_OUTPUT dataCb; 779 785 /* pSvcCb->mpaParms[0] always contains the context ID. */ 780 pSvcCbData->mpaParms[1].getUInt32(&dataCb.uPID); 781 pSvcCbData->mpaParms[2].getUInt32(&dataCb.uHandle); 782 pSvcCbData->mpaParms[3].getUInt32(&dataCb.uFlags); 783 pSvcCbData->mpaParms[4].getPointer(&dataCb.pvData, &dataCb.cbData); 786 int vrc = pSvcCbData->mpaParms[1].getUInt32(&dataCb.uPID); 787 AssertRCReturn(vrc, vrc); 788 vrc = pSvcCbData->mpaParms[2].getUInt32(&dataCb.uHandle); 789 AssertRCReturn(vrc, vrc); 790 vrc = pSvcCbData->mpaParms[3].getUInt32(&dataCb.uFlags); 791 AssertRCReturn(vrc, vrc); 792 vrc = pSvcCbData->mpaParms[4].getPointer(&dataCb.pvData, &dataCb.cbData); 793 AssertRCReturn(vrc, vrc); 784 794 785 795 LogFlowThisFunc(("uPID=%RU32, uHandle=%RU32, uFlags=%RI32, pvData=%p, cbData=%RU32, pCallback=%p\n", 786 796 dataCb.uPID, dataCb.uHandle, dataCb.uFlags, dataCb.pvData, dataCb.cbData, pCallback)); 787 797 788 int vrc = checkPID(dataCb.uPID); 789 if (RT_FAILURE(vrc)) 790 return vrc; 798 vrc = checkPID(dataCb.uPID); 799 AssertRCReturn(vrc, vrc); 791 800 792 801 /* First, signal callback in every case (if available). */ … … 823 832 if (fSignal) 824 833 { 825 int rc2 ;834 int rc2 = VINF_SUCCESS; 826 835 if (dataCb.uHandle == OUTPUT_HANDLE_ID_STDOUT) 827 836 rc2 = signalWaiters(ProcessWaitResult_StdOut);
Note:
See TracChangeset
for help on using the changeset viewer.