儲存庫 vbox 的更動 77232
- 時間撮記:
- 2019-2-9 上午01:55:37 (6 年 以前)
- 位置:
- trunk/src/VBox/Storage
- 檔案:
-
- 修改 11 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Storage/QCOW.cpp
r76553 r77232 974 974 if (pImage->pszBackingFilename) 975 975 { 976 RT MemFree(pImage->pszBackingFilename);976 RTStrFree(pImage->pszBackingFilename); 977 977 pImage->pszBackingFilename = NULL; 978 978 } … … 1153 1153 { 1154 1154 /* Load backing filename from image. */ 1155 pImage->pszBackingFilename = (char *)RTMemAllocZ(pImage->cbBackingFilename + 1); /* +1 for \0 terminator. */1155 pImage->pszBackingFilename = RTStrAlloc(pImage->cbBackingFilename + 1); /* +1 for \0 terminator. */ 1156 1156 if (pImage->pszBackingFilename) 1157 1157 { 1158 RT_BZERO(pImage->pszBackingFilename, pImage->cbBackingFilename + 1); 1158 1159 rc = vdIfIoIntFileReadSync(pImage->pIfIo, pImage->pStorage, 1159 1160 pImage->offBackingFilename, pImage->pszBackingFilename, 1160 1161 pImage->cbBackingFilename); 1162 if (RT_SUCCESS(rc)) 1163 rc = RTStrValidateEncoding(pImage->pszBackingFilename); 1161 1164 } 1162 1165 else 1163 rc = VERR_NO_ MEMORY;1166 rc = VERR_NO_STR_MEMORY; 1164 1167 } 1165 1168 … … 2197 2200 pImage->pszBackingFilename = RTStrDup(pszParentFilename); 2198 2201 if (!pImage->pszBackingFilename) 2199 rc = VERR_NO_ MEMORY;2202 rc = VERR_NO_STR_MEMORY; 2200 2203 else 2201 2204 { -
trunk/src/VBox/Storage/QED.cpp
r76553 r77232 1107 1107 if (pImage->pszBackingFilename) 1108 1108 { 1109 RT MemFree(pImage->pszBackingFilename);1109 RTStrFree(pImage->pszBackingFilename); 1110 1110 pImage->pszBackingFilename = NULL; 1111 1111 } … … 1175 1175 { 1176 1176 /* Load backing filename from image. */ 1177 pImage->pszBackingFilename = (char *)RTMemAllocZ(Header.u32BackingFilenameSize + 1); /* +1 for \0 terminator. */1177 pImage->pszBackingFilename = RTStrAlloc(Header.u32BackingFilenameSize + 1); /* +1 for \0 terminator. */ 1178 1178 if (pImage->pszBackingFilename) 1179 1179 { 1180 RT_BZERO(pImage->pszBackingFilename, Header.u32BackingFilenameSize + 1); 1180 1181 pImage->cbBackingFilename = Header.u32BackingFilenameSize; 1181 1182 pImage->offBackingFilename = Header.u32OffBackingFilename; … … 1183 1184 Header.u32OffBackingFilename, pImage->pszBackingFilename, 1184 1185 Header.u32BackingFilenameSize); 1186 if (RT_SUCCESS(rc)) 1187 rc = RTStrValidateEncoding(pImage->pszBackingFilename); 1185 1188 } 1186 1189 else 1187 rc = VERR_NO_ MEMORY;1190 rc = VERR_NO_STR_MEMORY; 1188 1191 } 1189 1192 … … 2203 2206 pImage->pszBackingFilename = RTStrDup(pszParentFilename); 2204 2207 if (!pImage->pszBackingFilename) 2205 rc = VERR_NO_ MEMORY;2208 rc = VERR_NO_STR_MEMORY; 2206 2209 else 2207 2210 { -
trunk/src/VBox/Storage/testcase/VDIoBackend.cpp
r76553 r77232 1 /* *$Id$ */1 /* $Id$ */ 2 2 /** @file 3 *4 3 * VBox HDD container test utility, I/O backend API 5 4 */ -
trunk/src/VBox/Storage/testcase/VDIoBackendMem.cpp
r76553 r77232 1 /* *$Id$ */1 /* $Id$ */ 2 2 /** @file 3 *4 3 * VBox HDD container test utility, async I/O memory backend 5 4 */ -
trunk/src/VBox/Storage/testcase/VDMemDisk.cpp
r76553 r77232 1 /* *$Id$ */1 /* $Id$ */ 2 2 /** @file 3 *4 3 * VBox HDD container test utility, memory disk/file. 5 4 */ -
trunk/src/VBox/Storage/testcase/VDScript.cpp
r76553 r77232 1 /* *$Id$ */1 /* $Id$ */ 2 2 /** @file 3 3 * VBox HDD container test utility - scripting engine. -
trunk/src/VBox/Storage/testcase/VDScriptAst.cpp
r76553 r77232 1 /* *$Id$ */1 /* $Id$ */ 2 2 /** @file 3 *4 3 * VBox HDD container test utility - scripting engine AST node related functions. 5 4 */ -
trunk/src/VBox/Storage/testcase/VDScriptChecker.cpp
r76553 r77232 1 /* *$Id$ */1 /* $Id$ */ 2 2 /** @file 3 3 * VBox HDD container test utility - scripting engine, type and context checker. -
trunk/src/VBox/Storage/testcase/VDScriptInterp.cpp
r76553 r77232 1 /* *$Id$ */1 /* $Id$ */ 2 2 /** @file 3 3 * VBox HDD container test utility - scripting engine, interpreter. -
trunk/src/VBox/Storage/testcase/tstVDIo.cpp
r76553 r77232 1 1 /* $Id$ */ 2 2 /** @file 3 *4 3 * VBox HDD container test utility - I/O replay. 5 4 */ … … 16 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 17 16 */ 17 18 18 #define LOGGROUP LOGGROUP_DEFAULT 19 19 #include <VBox/vd.h> -
trunk/src/VBox/Storage/testcase/tstVDSnap.cpp
r76553 r77232 1 /* $Id$ */ 1 2 /** @file 2 *3 3 * Snapshot VBox HDD container test utility. 4 4 */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器