Changeset 18766 in vbox
- Timestamp:
- Apr 6, 2009 2:39:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r18134 r18766 116 116 /** Flag whether suspend has changed image open mode to read only. */ 117 117 bool fTempReadOnly; 118 /** Flag whether to use the runtime (true) or startup error facility. */ 119 bool fErrorUseRuntime; 118 120 /** Pointer to list of VD interfaces. Per-disk. */ 119 121 PVDINTERFACE pVDIfsDisk; … … 156 158 { 157 159 PPDMDRVINS pDrvIns = (PPDMDRVINS)pvUser; 158 pDrvIns->pDrvHlp->pfnVMSetErrorV(pDrvIns, rc, RT_SRC_POS_ARGS, pszFormat, va); 160 PVBOXDISK pThis = PDMINS_2_DATA(pDrvIns, PVBOXDISK); 161 if (pThis->fErrorUseRuntime) 162 pDrvIns->pDrvHlp->pfnVMSetRuntimeErrorV(pDrvIns, VMSETRTERR_FLAGS_FATAL, "DrvVD", pszFormat, va); 163 else 164 pDrvIns->pDrvHlp->pfnVMSetErrorV(pDrvIns, rc, RT_SRC_POS_ARGS, pszFormat, va); 159 165 } 160 166 … … 1107 1113 AssertMsgRC(rc, ("Failed to create cache rc=%Rrc\n", rc)); 1108 1114 } 1115 1116 /* Switch to runtime error facility. */ 1117 pThis->fErrorUseRuntime = true; 1109 1118 } 1110 1119
Note:
See TracChangeset
for help on using the changeset viewer.