summaryrefslogtreecommitdiff
path: root/src/VBox/VMM/VMMR3/PDMDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/VMM/VMMR3/PDMDevice.cpp')
-rw-r--r--src/VBox/VMM/VMMR3/PDMDevice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/VBox/VMM/VMMR3/PDMDevice.cpp b/src/VBox/VMM/VMMR3/PDMDevice.cpp
index 1287739c5c4..005a5d55391 100644
--- a/src/VBox/VMM/VMMR3/PDMDevice.cpp
+++ b/src/VBox/VMM/VMMR3/PDMDevice.cpp
@@ -494,15 +494,15 @@ static int pdmR3DevLoadModules(PVM pVM)
/*
* Load the internal VMM APIC device.
*/
- int rc2 = pdmR3DevReg_Register(&RegCB.Core, &g_DeviceAPIC);
- AssertRCReturn(rc2, rc2);
+ int rc = APICR3RegisterDevice(&RegCB.Core);
+ AssertRCReturn(rc, rc);
/*
* Load the builtin module.
*/
PCFGMNODE pDevicesNode = CFGMR3GetChild(CFGMR3GetRoot(pVM), "PDM/Devices");
bool fLoadBuiltin;
- int rc = CFGMR3QueryBool(pDevicesNode, "LoadBuiltin", &fLoadBuiltin);
+ rc = CFGMR3QueryBool(pDevicesNode, "LoadBuiltin", &fLoadBuiltin);
if (rc == VERR_CFGM_VALUE_NOT_FOUND || rc == VERR_CFGM_NO_PARENT)
fLoadBuiltin = true;
else if (RT_FAILURE(rc))