- Timestamp:
- Aug 22, 2018 1:35:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp
r73827 r73829 1747 1747 * Validate the input and get our bearings. 1748 1748 */ 1749 AssertPtrReturn(pcszDescription, E_INVALIDARG);1750 AssertReturn(cOperations >= 1, E_INVALIDARG);1751 AssertReturn(uTotalOperationsWeight >= 1, E_INVALIDARG);1752 AssertPtrReturn(pcszFirstOperationDescription, E_INVALIDARG);1753 AssertReturn(uFirstOperationWeight >= 1, E_INVALIDARG);1754 AssertPtrReturn(ppProgressOut, E_INVALIDARG);1755 1756 AssertPtrReturn(pHlp, VERR_INVALID_POINTER);1757 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER);1749 AssertPtrReturn(pcszDescription, (uint32_t)E_INVALIDARG); 1750 AssertReturn(cOperations >= 1, (uint32_t)E_INVALIDARG); 1751 AssertReturn(uTotalOperationsWeight >= 1, (uint32_t)E_INVALIDARG); 1752 AssertPtrReturn(pcszFirstOperationDescription, (uint32_t)E_INVALIDARG); 1753 AssertReturn(uFirstOperationWeight >= 1, (uint32_t)E_INVALIDARG); 1754 AssertPtrReturn(ppProgressOut, (uint32_t)E_INVALIDARG); 1755 1756 AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG); 1757 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG); 1758 1758 #ifndef VBOX_COM_INPROC 1759 1759 ExtPack::Data *m = RT_FROM_CPP_MEMBER(pHlp, Data, Hlp); … … 1784 1784 * Validate the input and get our bearings. 1785 1785 */ 1786 AssertPtrReturn(pProgress, E_INVALIDARG);1787 AssertPtrReturn(pfCanceled, E_INVALIDARG);1788 1789 AssertPtrReturn(pHlp, VERR_INVALID_POINTER);1790 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER);1786 AssertPtrReturn(pProgress, (uint32_t)E_INVALIDARG); 1787 AssertPtrReturn(pfCanceled, (uint32_t)E_INVALIDARG); 1788 1789 AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG); 1790 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG); 1791 1791 1792 1792 BOOL fCanceled = FALSE; … … 1803 1803 * Validate the input and get our bearings. 1804 1804 */ 1805 AssertPtrReturn(pProgress, E_INVALIDARG);1806 AssertReturn(uPercent <= 100, E_INVALIDARG);1807 1808 AssertPtrReturn(pHlp, VERR_INVALID_POINTER);1809 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER);1805 AssertPtrReturn(pProgress, (uint32_t)E_INVALIDARG); 1806 AssertReturn(uPercent <= 100, (uint32_t)E_INVALIDARG); 1807 1808 AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG); 1809 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG); 1810 1810 1811 1811 return pProgress->SetCurrentOperationProgress(uPercent); … … 1820 1820 * Validate the input and get our bearings. 1821 1821 */ 1822 AssertPtrReturn(pProgress, E_INVALIDARG);1823 AssertPtrReturn(pcszNextOperationDescription, E_INVALIDARG);1824 AssertReturn(uNextOperationWeight >= 1, E_INVALIDARG);1825 1826 AssertPtrReturn(pHlp, VERR_INVALID_POINTER);1827 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER);1822 AssertPtrReturn(pProgress, (uint32_t)E_INVALIDARG); 1823 AssertPtrReturn(pcszNextOperationDescription, (uint32_t)E_INVALIDARG); 1824 AssertReturn(uNextOperationWeight >= 1, (uint32_t)E_INVALIDARG); 1825 1826 AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG); 1827 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG); 1828 1828 1829 1829 return pProgress->SetNextOperation(Bstr(pcszNextOperationDescription).raw(), uNextOperationWeight); … … 1837 1837 * Validate the input and get our bearings. 1838 1838 */ 1839 AssertPtrReturn(pProgress, E_INVALIDARG);1840 1841 AssertPtrReturn(pHlp, VERR_INVALID_POINTER);1842 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, VERR_INVALID_POINTER);1839 AssertPtrReturn(pProgress, (uint32_t)E_INVALIDARG); 1840 1841 AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG); 1842 AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG); 1843 1843 1844 1844 Progress *pProgressInt = static_cast<Progress *>(pProgress);
Note:
See TracChangeset
for help on using the changeset viewer.