Changeset 42848 in vbox
- Timestamp:
- Aug 16, 2012 1:49:50 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80106
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r42847 r42848 244 244 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 245 245 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(vrc)) 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; 246 ReturnComNotImplemented(); 274 247 #endif /* VBOX_WITH_GUEST_CONTROL */ 275 248 }
Note:
See TracChangeset
for help on using the changeset viewer.