Changeset 10715 in vbox for trunk/src/VBox/Main/HardDiskImpl.cpp
- Timestamp:
- Jul 16, 2008 10:38:23 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33435
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HardDiskImpl.cpp
r9497 r10715 3403 3403 mActualSize = 0; 3404 3404 3405 /* Create supported error interface. */ 3406 mInterfaceErrorCallbacks.cbSize = sizeof(VDINTERFACEERROR); 3407 mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 3408 mInterfaceErrorCallbacks.pfnError = VDError; 3409 int vrc = VDInterfaceCreate(&mInterfaceError, "VMDK_IError", VDINTERFACETYPE_ERROR, 3410 &mInterfaceErrorCallbacks, this, NULL); 3411 ComAssertRCRet (vrc, E_FAIL); 3412 3405 3413 /* initialize the container */ 3406 int vrc = VDCreate (VDError, this, &mContainer);3414 vrc = VDCreate (&mInterfaceError, &mContainer); 3407 3415 ComAssertRCRet (vrc, E_FAIL); 3408 3416 … … 4283 4291 ComAssertRCRet (rc, E_FAIL); 4284 4292 4293 /* Create supported error interface. */ 4294 mInterfaceErrorCallbacks.cbSize = sizeof(VDINTERFACEERROR); 4295 mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 4296 mInterfaceErrorCallbacks.pfnError = VDError; 4297 int vrc = VDInterfaceCreate(&mInterfaceError, "Custom_IError", VDINTERFACETYPE_ERROR, 4298 &mInterfaceErrorCallbacks, this, NULL); 4299 ComAssertRCRet (vrc, E_FAIL); 4300 4285 4301 return S_OK; 4286 4302 } … … 4344 4360 4345 4361 /* initialize the container */ 4346 vrc = VDCreate ( VDError, this, &mContainer);4362 vrc = VDCreate (&mInterfaceError, &mContainer); 4347 4363 if (VBOX_FAILURE (vrc)) 4348 4364 { … … 4447 4463 RTStrFree (pszFormat); 4448 4464 4449 /* Create the corresponding container.*/4450 vrc = VDCreate ( VDError, this, &mContainer);4465 /* initialize the container */ 4466 vrc = VDCreate (&mInterfaceError, &mContainer); 4451 4467 4452 4468 /* the format has been already checked for presence at this point */ … … 5111 5127 mActualSize = 0; 5112 5128 5129 /* Create supported error interface. */ 5130 mInterfaceErrorCallbacks.cbSize = sizeof(VDINTERFACEERROR); 5131 mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 5132 mInterfaceErrorCallbacks.pfnError = VDError; 5133 int vrc = VDInterfaceCreate(&mInterfaceError, "VHD_IError", VDINTERFACETYPE_ERROR, 5134 &mInterfaceErrorCallbacks, this, NULL); 5135 ComAssertRCRet (vrc, E_FAIL); 5136 5113 5137 /* initialize the container */ 5114 int vrc = VDCreate (VDError, this, &mContainer);5138 vrc = VDCreate (&mInterfaceError, &mContainer); 5115 5139 ComAssertRCRet (vrc, E_FAIL); 5116 5140
Note:
See TracChangeset
for help on using the changeset viewer.