- Timestamp:
- Jan 24, 2023 12:19:42 PM (21 months ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r98278 r98282 1149 1149 ComObjPtr<VirtualBoxErrorInfo> errorInfo; 1150 1150 HRESULT hrc = errorInfo.createObject(); 1151 ComAssertComRC(hrc); 1152 /** @todo r=bird: this aint making any sense, creating the object and using it 1153 * w/o checking the status code, but discarding it unused based on 1154 * an function input. */ 1151 ComAssertComRCRet(hrc, VERR_COM_UNEXPECTED); 1155 1152 if (RT_FAILURE(vrcFile)) 1156 1153 { 1157 hrc = errorInfo->initEx(VBOX_E_ IPRT_ERROR, vrcFile,1154 hrc = errorInfo->initEx(VBOX_E_GSTCTL_GUEST_ERROR, vrcFile, 1158 1155 COM_IIDOF(IGuestFile), getComponentName(), 1159 1156 i_guestErrorToString(vrcFile, mData.mOpenInfo.mFilename.c_str())); 1160 ComAssertComRC(hrc); 1161 } 1157 ComAssertComRCRet(hrc, VERR_COM_UNEXPECTED); 1158 } 1159 /* Note: On vrcFile success, errorInfo is set to S_OK and also sent via the event below. */ 1162 1160 1163 1161 alock.release(); /* Release lock before firing off event. */ … … 1578 1576 if (GuestProcess::i_isGuestError(vrc)) 1579 1577 { 1578 #ifndef VBOX_WITH_GSTCTL_NO_TOOLBOX 1580 1579 GuestErrorInfo ge(GuestErrorInfo::Type_ToolStat, vrcGuest, mData.mOpenInfo.mFilename.c_str()); 1581 1580 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, vrcGuest, tr("Querying guest file information failed: %s"), 1582 1581 GuestBase::getErrorAsString(ge).c_str()); 1582 #endif 1583 1583 } 1584 1584 else … … 1611 1611 if (GuestProcess::i_isGuestError(vrc)) 1612 1612 { 1613 #ifndef VBOX_WITH_GSTCTL_NO_TOOLBOX 1613 1614 GuestErrorInfo ge(GuestErrorInfo::Type_ToolStat, vrcGuest, mData.mOpenInfo.mFilename.c_str()); 1614 1615 hrc = setErrorBoth(VBOX_E_IPRT_ERROR, vrcGuest, tr("Querying guest file size failed: %s"), 1615 1616 GuestBase::getErrorAsString(ge).c_str()); 1617 #endif 1616 1618 } 1617 1619 else
Note:
See TracChangeset
for help on using the changeset viewer.

