Changeset 24998 in vbox
- Timestamp:
- Nov 26, 2009 1:22:55 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55304
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r23973 r24998 443 443 if (argc >= 3) 444 444 { 445 int rc = RTStrToInt64Ex(argv[2], NULL, 0, &offDelta);446 if (RT_FAILURE( rc))445 int irc = RTStrToInt64Ex(argv[2], NULL, 0, &offDelta); 446 if (RT_FAILURE(irc)) 447 447 return errorArgument(argv[0], "Failed to read delta '%s', rc=%Rrc\n", argv[2], rc); 448 448 } … … 455 455 if (argc >= 5) 456 456 { 457 int rc = RTStrToUInt64Ex(argv[4], NULL, 0, &ModuleAddress);458 if (RT_FAILURE( rc))457 int irc = RTStrToUInt64Ex(argv[4], NULL, 0, &ModuleAddress); 458 if (RT_FAILURE(irc)) 459 459 return errorArgument(argv[0], "Failed to read module address '%s', rc=%Rrc\n", argv[4], rc); 460 460 } … … 463 463 if (argc >= 6) 464 464 { 465 int rc = RTStrToUInt64Ex(argv[5], NULL, 0, &ModuleSize);466 if (RT_FAILURE( rc))465 int irc = RTStrToUInt64Ex(argv[5], NULL, 0, &ModuleSize); 466 if (RT_FAILURE(irc)) 467 467 return errorArgument(argv[0], "Failed to read module size '%s', rc=%Rrc\n", argv[5], rc); 468 468 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r24969 r24998 194 194 { 195 195 uint8_t u8Scancode; 196 int rc = RTStrToUInt8Ex(a->argv[i], NULL, 16, &u8Scancode);197 if (RT_FAILURE ( rc))196 int irc = RTStrToUInt8Ex(a->argv[i], NULL, 16, &u8Scancode); 197 if (RT_FAILURE (irc)) 198 198 { 199 199 RTPrintf("Error: converting '%s' returned %Rrc!\n", a->argv[i], rc); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r24884 r24998 460 460 { 461 461 char szFilenameAbs[RTPATH_MAX] = ""; 462 int vrc = RTPathAbs(FilenameOrUuid, szFilenameAbs, sizeof(szFilenameAbs));463 if (RT_FAILURE( vrc))462 int irc = RTPathAbs(FilenameOrUuid, szFilenameAbs, sizeof(szFilenameAbs)); 463 if (RT_FAILURE(irc)) 464 464 { 465 465 RTPrintf("Cannot convert filename \"%s\" to absolute path\n", FilenameOrUuid); … … 620 620 { 621 621 char szFilenameAbs[RTPATH_MAX] = ""; 622 int vrc = RTPathAbs(Utf8Str(src).c_str(), szFilenameAbs, sizeof(szFilenameAbs));623 if (RT_FAILURE( vrc))622 int irc = RTPathAbs(Utf8Str(src).c_str(), szFilenameAbs, sizeof(szFilenameAbs)); 623 if (RT_FAILURE(irc)) 624 624 { 625 625 RTPrintf("Cannot convert filename \"%s\" to absolute path\n", Utf8Str(src).raw()); … … 654 654 { 655 655 char szFilenameAbs[RTPATH_MAX] = ""; 656 int vrc = RTPathAbs(Utf8Str(dst).c_str(), szFilenameAbs, sizeof(szFilenameAbs));657 if (RT_FAILURE( vrc))656 int irc = RTPathAbs(Utf8Str(dst).c_str(), szFilenameAbs, sizeof(szFilenameAbs)); 657 if (RT_FAILURE(irc)) 658 658 { 659 659 RTPrintf("Cannot convert filename \"%s\" to absolute path\n", Utf8Str(dst).raw()); … … 1405 1405 { 1406 1406 char szFilenameAbs[RTPATH_MAX] = ""; 1407 int vrc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs));1408 if (RT_FAILURE( vrc))1407 int irc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs)); 1408 if (RT_FAILURE(irc)) 1409 1409 { 1410 1410 RTPrintf("Cannot convert filename \"%s\" to absolute path\n", Filename); … … 1434 1434 { 1435 1435 char szFilenameAbs[RTPATH_MAX] = ""; 1436 int vrc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs));1437 if (RT_FAILURE( vrc))1436 int irc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs)); 1437 if (RT_FAILURE(irc)) 1438 1438 { 1439 1439 RTPrintf("Cannot convert filename \"%s\" to absolute path\n", Filename); … … 1455 1455 { 1456 1456 char szFilenameAbs[RTPATH_MAX] = ""; 1457 int vrc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs));1458 if (RT_FAILURE( vrc))1457 int irc = RTPathAbs(Filename, szFilenameAbs, sizeof(szFilenameAbs)); 1458 if (RT_FAILURE(irc)) 1459 1459 { 1460 1460 RTPrintf("Cannot convert filename \"%s\" to absolute path\n", Filename); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp
r21612 r24998 107 107 }; 108 108 109 int handleImportAppliance(HandlerArg *a )109 int handleImportAppliance(HandlerArg *arg) 110 110 { 111 111 HRESULT rc = S_OK; … … 125 125 RTGETOPTSTATE GetState; 126 126 // start at 0 because main() has hacked both the argc and argv given to us 127 RTGetOptInit(&GetState, a ->argc, a->argv, g_aImportApplianceOptions, RT_ELEMENTS(g_aImportApplianceOptions), 0, 0 /* fFlags */);127 RTGetOptInit(&GetState, arg->argc, arg->argv, g_aImportApplianceOptions, RT_ELEMENTS(g_aImportApplianceOptions), 0, 0 /* fFlags */); 128 128 while ((c = RTGetOpt(&GetState, &ValueUnion))) 129 129 { … … 231 231 { 232 232 ComPtr<IAppliance> pAppliance; 233 CHECK_ERROR_BREAK(a ->virtualBox, CreateAppliance(pAppliance.asOutParam()));233 CHECK_ERROR_BREAK(arg->virtualBox, CreateAppliance(pAppliance.asOutParam())); 234 234 235 235 char *pszAbsFilePath; … … 879 879 void *pvFile; 880 880 size_t cbFile; 881 int rc = RTFileReadAll(itD->second.c_str(), &pvFile, &cbFile);882 if (RT_SUCCESS( rc))881 int irc = RTFileReadAll(itD->second.c_str(), &pvFile, &cbFile); 882 if (RT_SUCCESS(irc)) 883 883 { 884 Bstr strContent((char*)pvFile);885 pVSD->AddDescription (VirtualSystemDescriptionType_License, strContent,strContent);884 Bstr bstrContent((char*)pvFile); 885 pVSD->AddDescription(VirtualSystemDescriptionType_License, bstrContent, bstrContent); 886 886 RTFileReadAllFree(pvFile, cbFile); 887 887 }
Note:
See TracChangeset
for help on using the changeset viewer.