- Timestamp:
- Mar 8, 2019 3:37:25 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129250
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r77608 r77622 1 #include <signal.h>2 1 /* $Id$ */ 3 2 /** @file … … 51 50 MEDIUMCATEGORY_FLOPPY 52 51 } MEDIUMCATEGORY; 52 53 53 54 54 55 // funcs … … 478 479 { 479 480 if (pMediumProps) 480 for (PMEDIUMPROPERTY pProp = pMediumProps; pProp; pProp = pProp->next) 481 for (PMEDIUMPROPERTY pProp = pMediumProps; pProp;) 482 { 481 483 CHECK_ERROR(pMedium, SetProperty(Bstr(pProp->key).raw(), Bstr(pProp->value).raw())); 484 PMEDIUMPROPERTY next = pProp->next; 485 RTMemFree(pProp); 486 pProp = next; 487 } 482 488 } 483 489 -
trunk/src/VBox/Storage/VDI.cpp
r77607 r77622 42 42 static const char *vdiAllocationBlockSize = "1048576"; 43 43 44 static const VDCONFIGINFO vdiConfigInfo[] = { 45 { "AllocationBlockSize", vdiAllocationBlockSize, VDCFGVALUETYPE_INTEGER, 0 } 44 static const VDCONFIGINFO vdiConfigInfo[] = 45 { 46 { "AllocationBlockSize", vdiAllocationBlockSize, VDCFGVALUETYPE_INTEGER, 0 }, 47 { NULL, NULL, VDCFGVALUETYPE_INTEGER, 0 } 46 48 }; 47 49 … … 719 721 720 722 PVDINTERFACECONFIG pImgCfg = VDIfConfigGet(pImage->pVDIfsImage); 721 if (pImgCfg) { 723 if (pImgCfg) 724 { 722 725 rc = VDCFGQueryU32Def(pImgCfg, "AllocationBlockSize", &cbAllocationBlock, VDI_IMAGE_DEFAULT_BLOCK_SIZE); 723 726 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.