Changeset 52863 in vbox
- Timestamp:
- Sep 25, 2014 1:03:51 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 96282
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r52613 r52863 3200 3200 3201 3201 char *pszOemId = NULL; 3202 rc = CFGMR3QueryStringAllocDef(p This->pDevInsR3->pCfg, "AcpiOemId", &pszOemId, "VBOX ");3203 if (RT_FAILURE(rc)) 3204 return PDMDEV_SET_ERROR(p This->pDevInsR3, rc,3202 rc = CFGMR3QueryStringAllocDef(pCfg, "AcpiOemId", &pszOemId, "VBOX "); 3203 if (RT_FAILURE(rc)) 3204 return PDMDEV_SET_ERROR(pDevIns, rc, 3205 3205 N_("Configuration error: Querying \"AcpiOemId\" as string failed")); 3206 3206 size_t cbOemId = strlen(pszOemId); 3207 3207 if (cbOemId > 6) 3208 return PDMDEV_SET_ERROR(p This->pDevInsR3, rc,3208 return PDMDEV_SET_ERROR(pDevIns, rc, 3209 3209 N_("Configuration error: \"AcpiOemId\" must contain not more than 6 characters")); 3210 3210 memset(pThis->au8OemId, ' ', sizeof(pThis->au8OemId)); … … 3213 3213 3214 3214 char *pszCreatorId = NULL; 3215 rc = CFGMR3QueryStringAllocDef(p This->pDevInsR3->pCfg, "AcpiCreatorId", &pszCreatorId, "ASL ");3216 if (RT_FAILURE(rc)) 3217 return PDMDEV_SET_ERROR(p This->pDevInsR3, rc,3215 rc = CFGMR3QueryStringAllocDef(pCfg, "AcpiCreatorId", &pszCreatorId, "ASL "); 3216 if (RT_FAILURE(rc)) 3217 return PDMDEV_SET_ERROR(pDevIns, rc, 3218 3218 N_("Configuration error: Querying \"AcpiCreatorId\" as string failed")); 3219 3219 size_t cbCreatorId = strlen(pszCreatorId); 3220 3220 if (cbCreatorId > 4) 3221 return PDMDEV_SET_ERROR(p This->pDevInsR3, rc,3221 return PDMDEV_SET_ERROR(pDevIns, rc, 3222 3222 N_("Configuration error: \"AcpiCreatorId\" must contain not more than 4 characters")); 3223 3223 memset(pThis->au8CreatorId, ' ', sizeof(pThis->au8CreatorId)); … … 3225 3225 MMR3HeapFree(pszCreatorId); 3226 3226 3227 rc = CFGMR3QueryU32Def(p This->pDevInsR3->pCfg, "AcpiCreatorRev", &pThis->u32CreatorRev, RT_H2LE_U32(0x61));3228 if (RT_FAILURE(rc)) 3229 return PDMDEV_SET_ERROR(p This->pDevInsR3, rc,3227 rc = CFGMR3QueryU32Def(pCfg, "AcpiCreatorRev", &pThis->u32CreatorRev, RT_H2LE_U32(0x61)); 3228 if (RT_FAILURE(rc)) 3229 return PDMDEV_SET_ERROR(pDevIns, rc, 3230 3230 N_("Configuration error: Querying \"AcpiCreatorRev\" as integer failed")); 3231 3231 pThis->u32OemRevision = RT_H2LE_U32(0x1); … … 3235 3235 */ 3236 3236 char *pszCustBinFile; 3237 rc = CFGMR3QueryStringAlloc(p This->pDevInsR3->pCfg, "CustomTable", &pszCustBinFile);3237 rc = CFGMR3QueryStringAlloc(pCfg, "CustomTable", &pszCustBinFile); 3238 3238 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 3239 rc = CFGMR3QueryStringAlloc(p This->pDevInsR3->pCfg, "SLICTable", &pszCustBinFile);3239 rc = CFGMR3QueryStringAlloc(pCfg, "SLICTable", &pszCustBinFile); 3240 3240 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 3241 3241 { … … 3244 3244 } 3245 3245 else if (RT_FAILURE(rc)) 3246 return PDMDEV_SET_ERROR(p This->pDevInsR3, rc,3246 return PDMDEV_SET_ERROR(pDevIns, rc, 3247 3247 N_("Configuration error: Querying \"CustomTable\" as a string failed")); 3248 3248 else if (!*pszCustBinFile) … … 3273 3273 * Allocate buffer for the custom table binary data. 3274 3274 */ 3275 pThis->pu8CustBin = (uint8_t *)PDMDevHlpMMHeapAlloc(p This->pDevInsR3, pThis->cbCustBin);3275 pThis->pu8CustBin = (uint8_t *)PDMDevHlpMMHeapAlloc(pDevIns, pThis->cbCustBin); 3276 3276 if (pThis->pu8CustBin) 3277 3277 {
Note:
See TracChangeset
for help on using the changeset viewer.