Changeset 32536 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Sep 15, 2010 6:25:32 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 65918
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r32531 r32536 508 508 } 509 509 510 static int handleVDMessage(void *pvUser, const char *pszFormat, ...)510 static int handleVDMessage(void *pvUser, const char *pszFormat, va_list va) 511 511 { 512 512 NOREF(pvUser); 513 va_list args; 514 va_start(args, pszFormat); 515 int rc = RTPrintfV(pszFormat, args); 516 va_end(args); 517 return rc; 513 return RTPrintfV(pszFormat, va); 518 514 } 519 515 … … 555 551 /* just try it */ 556 552 char *pszFormat = NULL; 557 int rc = VDGetFormat(NULL /* pVDIfsDisk */, argv[1], &pszFormat); 553 int rc = VDGetFormat(NULL /* pVDIfsDisk */, NULL /* pVDIfsImage */, 554 argv[1], &pszFormat); 558 555 if (RT_FAILURE(rc)) 559 556 { … … 616 613 /* just try it */ 617 614 char *pszFormat = NULL; 618 int rc = VDGetFormat(NULL /* pVDIfsDisk */, argv[0], &pszFormat); 615 int rc = VDGetFormat(NULL /* pVDIfsDisk */, NULL /* pVDIfsImage */, 616 argv[0], &pszFormat); 619 617 if (RT_FAILURE(rc)) 620 618 { … … 1437 1435 Assert(RT_MIN(cbSize / 512 / 16 / 63, 16383) - 1438 1436 (unsigned int)RT_MIN(cbSize / 512 / 16 / 63, 16383) == 0); 1439 PDMMEDIAGEOMETRY PCHS, LCHS;1437 VDGEOMETRY PCHS, LCHS; 1440 1438 PCHS.cCylinders = (unsigned int)RT_MIN(cbSize / 512 / 16 / 63, 16383); 1441 1439 PCHS.cHeads = 16; … … 1641 1639 { 1642 1640 char *pszFormat = NULL; 1643 vrc = VDGetFormat(NULL /* pVDIfsDisk */, src.c_str(), &pszFormat); 1641 vrc = VDGetFormat(NULL /* pVDIfsDisk */, NULL /* pVDIfsImage */, 1642 src.c_str(), &pszFormat); 1644 1643 if (RT_FAILURE(vrc)) 1645 1644 { … … 1788 1787 { 1789 1788 char *pszFormat = NULL; 1790 vrc = VDGetFormat(NULL /* pVDIfsDisk */, src.c_str(), &pszFormat); 1789 vrc = VDGetFormat(NULL /* pVDIfsDisk */, NULL /* pVDIfsImage */, 1790 src.c_str(), &pszFormat); 1791 1791 if (RT_FAILURE(vrc)) 1792 1792 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r32531 r32536 890 890 Assert(RT_MIN(cbFile / 512 / 16 / 63, 16383) - 891 891 (unsigned int)RT_MIN(cbFile / 512 / 16 / 63, 16383) == 0); 892 PDMMEDIAGEOMETRY PCHS, LCHS;892 VDGEOMETRY PCHS, LCHS; 893 893 PCHS.cCylinders = (unsigned int)RT_MIN(cbFile / 512 / 16 / 63, 16383); 894 894 PCHS.cHeads = 16;
Note:
See TracChangeset
for help on using the changeset viewer.