Changeset 20212 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 3, 2009 8:09:42 AM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r20211 r20212 4000 4000 } 4001 4001 // report result of asynchronous operation 4002 LONG iRc;4002 ULONG iRc; 4003 4003 rc = pProgressAsync->COMGETTER(ResultCode)(&iRc); 4004 4004 if (FAILED(rc)) throw rc; -
trunk/src/VBox/Main/HostPower.cpp
r19242 r20212 136 136 137 137 /* Wait until the operation has been completed. */ 138 LONG iRc;138 ULONG iRc; 139 139 rc = progress->WaitForCompletion(-1); 140 140 if (SUCCEEDED (rc)) -
trunk/src/VBox/Main/ProgressImpl.cpp
r19242 r20212 372 372 } 373 373 374 STDMETHODIMP ProgressBase::COMGETTER(ResultCode) ( LONG *aResultCode)374 STDMETHODIMP ProgressBase::COMGETTER(ResultCode) (ULONG *aResultCode) 375 375 { 376 376 CheckComArgOutPointerValid(aResultCode); … … 492 492 AssertReturn (aProgress != NULL, E_INVALIDARG); 493 493 494 LONG iRc;495 HRESULT rc = aProgress->COMGETTER(ResultCode) (& iRc);494 ULONG resultCode; 495 HRESULT rc = aProgress->COMGETTER(ResultCode) (&resultCode); 496 496 AssertComRCReturnRC (rc); 497 HRESULT resultCode = iRc;498 497 499 498 if (resultCode == S_OK) … … 1316 1315 } 1317 1316 1318 STDMETHODIMP CombinedProgress::COMGETTER(ResultCode) ( LONG *aResultCode)1317 STDMETHODIMP CombinedProgress::COMGETTER(ResultCode) (ULONG *aResultCode) 1319 1318 { 1320 1319 CheckComArgOutPointerValid(aResultCode); … … 1593 1592 return rc; 1594 1593 1595 LONG iRc; 1596 rc = progress->COMGETTER(ResultCode) (&iRc); 1594 rc = progress->COMGETTER(ResultCode) (&mResultCode); 1597 1595 if (FAILED (rc)) 1598 1596 return rc; 1599 mResultCode = iRc;1600 1597 1601 1598 if (FAILED (mResultCode)) -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r20081 r20212 8031 8031 </attribute> 8032 8032 8033 <attribute name="resultCode" type=" long" readonly="yes">8033 <attribute name="resultCode" type="unsigned long" readonly="yes"> 8034 8034 <desc> 8035 8035 Result code of the progress task. -
trunk/src/VBox/Main/include/ProgressImpl.h
r19242 r20212 76 76 STDMETHOD(COMGETTER(Completed)) (BOOL *aCompleted); 77 77 STDMETHOD(COMGETTER(Canceled)) (BOOL *aCanceled); 78 STDMETHOD(COMGETTER(ResultCode)) ( LONG *aResultCode);78 STDMETHOD(COMGETTER(ResultCode)) (ULONG *aResultCode); 79 79 STDMETHOD(COMGETTER(ErrorInfo)) (IVirtualBoxErrorInfo **aErrorInfo); 80 80 STDMETHOD(COMGETTER(OperationCount)) (ULONG *aOperationCount); … … 396 396 STDMETHOD(COMGETTER(Completed)) (BOOL *aCompleted); 397 397 STDMETHOD(COMGETTER(Canceled)) (BOOL *aCanceled); 398 STDMETHOD(COMGETTER(ResultCode)) ( LONG *aResultCode);398 STDMETHOD(COMGETTER(ResultCode)) (ULONG *aResultCode); 399 399 STDMETHOD(COMGETTER(ErrorInfo)) (IVirtualBoxErrorInfo **aErrorInfo); 400 400 STDMETHOD(COMGETTER(Operation)) (ULONG *aCount); -
trunk/src/VBox/Main/testcase/tstVBoxAPILinux.cpp
r19242 r20212 326 326 */ 327 327 rc = progress->WaitForCompletion(-1); 328 PR Int32 resultCode;328 PRUint32 resultCode; 329 329 progress->GetResultCode(&resultCode); 330 330 if (NS_FAILED(rc) || NS_FAILED(resultCode))
Note:
See TracChangeset
for help on using the changeset viewer.