Changeset 42846 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Aug 16, 2012 1:35:28 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80104
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp
r42759 r42846 194 194 uninit(); 195 195 196 LogFlowThisFuncLeave(); 196 197 return S_OK; 197 198 #endif /* VBOX_WITH_GUEST_CONTROL */ -
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r42818 r42846 63 63 mData.mSession = pSession; 64 64 mData.mCreationMode = uCreationMode; 65 mData.mDisposition = getDispositionFromString(strDisposition);65 mData.mDisposition = GuestFile::getDispositionFromString(strDisposition); 66 66 mData.mFileName = strPath; 67 67 mData.mInitialSize = 0; 68 mData.mOpenMode = getOpenModeFromString(strOpenMode);68 mData.mOpenMode = GuestFile::getOpenModeFromString(strOpenMode); 69 69 mData.mOffset = iOffset; 70 70 … … 227 227 ReturnComNotImplemented(); 228 228 #else 229 AutoCaller autoCaller(this); 230 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 231 232 ReturnComNotImplemented(); 229 LogFlowThisFuncEnter(); 230 231 uninit(); 232 233 LogFlowThisFuncLeave(); 234 return S_OK; 233 235 #endif /* VBOX_WITH_GUEST_CONTROL */ 234 236 } … … 242 244 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 243 245 244 ReturnComNotImplemented(); 246 HRESULT hr = S_OK; 247 248 GuestFsObjData objData; 249 int vrc = mData.mSession->fileQueryInfoInternal(mData.mFileName, objData); 250 if (RT_SUCCESS(vrc)) 251 { 252 ComObjPtr<GuestFsObjInfo> pFsObjInfo; 253 hr = pFsObjInfo.createObject(); 254 if (FAILED(hr)) 255 return VERR_COM_UNEXPECTED; 256 257 vrc = pFsObjInfo->init(objData); 258 if (RT_SUCCESS(rc)) 259 hr = pFsObjInfo.queryInterfaceTo(aInfo); 260 } 261 else 262 { 263 switch (vrc) 264 { 265 /** @todo Add more errors here! */ 266 267 default: 268 hr = setError(VBOX_E_IPRT_ERROR, tr("Querying file information failed: %Rrc"), vrc); 269 break; 270 } 271 } 272 273 return hr; 245 274 #endif /* VBOX_WITH_GUEST_CONTROL */ 246 275 } -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r42818 r42846 1044 1044 { 1045 1045 LogFlowThisFunc(("aCmd=%s, aTimeoutMS=%RU32, fFlags=%x\n", 1046 mData.mProcess.mCommand.c_str(), mData.mProcess.mTimeoutMS, mData.mProcess.mFlags));1046 mData.mProcess.mCommand.c_str(), mData.mProcess.mTimeoutMS, mData.mProcess.mFlags)); 1047 1047 1048 1048 /* Wait until the caller function (if kicked off by a thread) … … 1545 1545 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1546 1546 1547 HRESULT hr = S_OK; 1548 1547 1549 int vrc = terminateProcess(); 1548 /** @todo Do setError() here. */ 1549 HRESULT hr = RT_SUCCESS(vrc) ? S_OK : VBOX_E_IPRT_ERROR; 1550 LogFlowFuncLeaveRC(vrc); 1551 1550 if (RT_FAILURE(vrc)) 1551 { 1552 switch (vrc) 1553 { 1554 case VERR_NOT_IMPLEMENTED: 1555 ReturnComNotImplemented(); 1556 break; /* Never reached. */ 1557 1558 case VERR_NOT_SUPPORTED: 1559 hr = setError(VBOX_E_IPRT_ERROR, 1560 tr("Terminating process \"%s\" (PID %RU32) not supported by installed Guest Additions"), 1561 mData.mProcess.mCommand.c_str(), mData.mPID); 1562 break; 1563 1564 default: 1565 hr = setError(VBOX_E_IPRT_ERROR, 1566 tr("Terminating process \"%s\" (PID %RU32) failed: %Rrc"), 1567 mData.mProcess.mCommand.c_str(), mData.mPID, vrc); 1568 break; 1569 } 1570 } 1571 1572 LogFlowFuncLeaveRC(vrc); 1552 1573 return hr; 1553 1574 #endif /* VBOX_WITH_GUEST_CONTROL */ -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r42810 r42846 765 765 return VERR_COM_UNEXPECTED; 766 766 767 /* Note: There will be a race between creating and getting/initing the directory768 object here. */769 767 int rc = pFile->init(this /* Parent */, 770 768 strPath, strOpenMode, strDisposition, uCreationMode, iOffset); … … 818 816 LogFlowThisFunc(("strPath=%s\n", strPath.c_str())); 819 817 818 /** @todo Merge this with IGuestFile::queryInfo(). */ 820 819 GuestProcessStartupInfo procInfo; 821 820 procInfo.mName = Utf8StrFmt(tr("Querying info for \"%s\""), strPath.c_str());
Note:
See TracChangeset
for help on using the changeset viewer.