Changeset 2986
- Timestamp:
- 28/08/2011 16:37:31 (9 months ago)
- File:
-
- 1 edited
-
box/trunk/bin/bbackupd/BackupDaemon.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/BackupDaemon.cpp
r2983 r2986 119 119 std::string WideStringToString(WCHAR *buf) 120 120 { 121 if (buf == NULL) 122 { 123 return "(null)"; 124 } 125 121 126 char* pStr = ConvertFromWideString(buf, CP_UTF8); 122 127 123 128 if(pStr == NULL) 124 129 { 125 return " conversion failed";130 return "(conversion failed)"; 126 131 } 127 132 … … 1251 1256 switch(pComponentInfo->type) 1252 1257 { 1253 case VSS_CT_UNDEFINED: BOX_ INFO("VSS: type: undefined"); break;1254 case VSS_CT_DATABASE: BOX_ INFO("VSS: type: database"); break;1255 case VSS_CT_FILEGROUP: BOX_ INFO("VSS: type: filegroup"); break;1258 case VSS_CT_UNDEFINED: BOX_TRACE("VSS: type: undefined"); break; 1259 case VSS_CT_DATABASE: BOX_TRACE("VSS: type: database"); break; 1260 case VSS_CT_FILEGROUP: BOX_TRACE("VSS: type: filegroup"); break; 1256 1261 default: 1257 1262 BOX_WARNING("VSS: type: unknown (" << pComponentInfo->type << ")"); … … 1335 1340 rLocation.mSnapshotVolumeId = newVolumeId; 1336 1341 rLocation.mIsSnapshotCreated = true; 1342 1343 // If the snapshot path starts with the volume root 1344 // (drive letter), because the path is absolute (as 1345 // it should be), then remove it so that the 1346 // resulting snapshot path can be appended to the 1347 // snapshot device object to make a real path, 1348 // without a spurious drive letter in it. 1349 1350 if (path.substr(0, volumeRoot.length()) == volumeRoot) 1351 { 1352 path = path.substr(volumeRoot.length()); 1353 } 1354 1337 1355 rLocation.mSnapshotPath = path; 1338 1356 }
Note: See TracChangeset
for help on using the changeset viewer.
