Changeset 39585 in vbox for trunk/src/VBox/Main/src-client/GuestCtrlImplFile.cpp
- Timestamp:
- Dec 12, 2011 3:35:46 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 75349
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestCtrlImplFile.cpp
r39418 r39585 146 146 { 147 147 int rc = VINF_SUCCESS; 148 const char *pszFsType = stdOut[0].GetString("ftype"); 149 if (!pszFsType) /* Attribute missing? */ 148 if (stdOut.size()) 149 { 150 const char *pszFsType = stdOut[0].GetString("ftype"); 151 if (!pszFsType) /* Attribute missing? */ 152 rc = VERR_NOT_FOUND; 153 if ( RT_SUCCESS(rc) 154 && strcmp(pszFsType, "-")) /* Regular file? */ 155 { 156 rc = VERR_FILE_NOT_FOUND; 157 /* This is not critical for Main, so don't set hr -- 158 * we will take care of rc then. */ 159 } 160 if ( RT_SUCCESS(rc) 161 && aObjInfo) /* Do we want object details? */ 162 { 163 hr = executeStreamQueryFsObjInfo(aFile, stdOut[0], 164 aObjInfo, enmAddAttribs); 165 } 166 } 167 else 150 168 rc = VERR_NOT_FOUND; 151 if ( RT_SUCCESS(rc)152 && strcmp(pszFsType, "-")) /* Regular file? */153 {154 rc = VERR_FILE_NOT_FOUND;155 /* This is not critical for Main, so don't set hr --156 * we will take care of rc then. */157 }158 if ( RT_SUCCESS(rc)159 && aObjInfo) /* Do we want object details? */160 {161 hr = executeStreamQueryFsObjInfo(aFile, stdOut[0],162 aObjInfo, enmAddAttribs);163 }164 169 165 170 if (pRC)
Note:
See TracChangeset
for help on using the changeset viewer.