Changeset 40258 in vbox
- Timestamp:
- Feb 27, 2012 9:48:41 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vd.h
r39798 r40258 470 470 * If container has opened image files they will be closed. 471 471 * 472 * @param pDisk Pointer to HDD container. 473 */ 474 VBOXDDU_DECL(void) VDDestroy(PVBOXHDD pDisk); 472 * @return VBox status code. 473 * @param pDisk Pointer to HDD container. 474 */ 475 VBOXDDU_DECL(int) VDDestroy(PVBOXHDD pDisk); 475 476 476 477 /** -
trunk/src/VBox/Storage/VD.cpp
r39928 r40258 5134 5134 * If container has opened image files they will be closed. 5135 5135 * 5136 * @returns VBox status code. 5136 5137 * @param pDisk Pointer to HDD container. 5137 5138 */ 5138 VBOXDDU_DECL(void) VDDestroy(PVBOXHDD pDisk) 5139 { 5139 VBOXDDU_DECL(int) VDDestroy(PVBOXHDD pDisk) 5140 { 5141 int rc = VINF_SUCCESS; 5140 5142 LogFlowFunc(("pDisk=%#p\n", pDisk)); 5141 5143 do … … 5144 5146 AssertPtrBreak(pDisk); 5145 5147 AssertMsg(pDisk->u32Signature == VBOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 5146 VDCloseAll(pDisk);5148 rc = VDCloseAll(pDisk); 5147 5149 RTCritSectDelete(&pDisk->CritSect); 5148 5150 RTMemCacheDestroy(pDisk->hMemCacheIoCtx); … … 5150 5152 RTMemFree(pDisk); 5151 5153 } while (0); 5152 LogFlowFunc(("returns\n")); 5154 LogFlowFunc(("returns %Rrc\n", rc)); 5155 return rc; 5153 5156 } 5154 5157
Note:
See TracChangeset
for help on using the changeset viewer.