Changeset 98274 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 24, 2023 11:19:16 AM (2 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/PCIRawDevImpl.h
r98103 r98274 56 56 static DECLCALLBACK(int) drvDeviceConstructComplete(PPDMIPCIRAWCONNECTOR pInterface, const char *pcszName, 57 57 uint32_t uHostPCIAddress, uint32_t uGuestPCIAddress, 58 int rc);58 int vrc); 59 59 60 60 Console * const mParent; -
trunk/src/VBox/Main/src-client/PCIRawDevImpl.cpp
r98103 r98274 86 86 DECLCALLBACK(int) PCIRawDev::drvDeviceConstructComplete(PPDMIPCIRAWCONNECTOR pInterface, const char *pcszName, 87 87 uint32_t uHostPCIAddress, uint32_t uGuestPCIAddress, 88 int rc)88 int vrc) 89 89 { 90 90 PDRVMAINPCIRAWDEV pThis = RT_FROM_CPP_MEMBER(pInterface, DRVMAINPCIRAWDEV, IConnector); … … 110 110 111 111 Bstr msg(""); 112 if (RT_FAILURE( rc))113 msg = BstrFmt("runtime error %Rrc",rc);114 115 ::FireHostPCIDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS_NP( rc) /* success */, pda, msg.raw());112 if (RT_FAILURE(vrc)) 113 msg.printf("runtime error %Rrc", vrc); 114 115 ::FireHostPCIDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS_NP(vrc) /* success */, pda, msg.raw()); 116 116 117 117 return VINF_SUCCESS; … … 165 165 */ 166 166 void *pv; 167 int rc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv);168 if (RT_FAILURE( rc))167 int vrc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv); 168 if (RT_FAILURE(vrc)) 169 169 { 170 AssertMsgFailed(("Configuration error: No \"Object\" value! rc=%Rrc\n",rc));171 return rc;170 AssertMsgFailed(("Configuration error: No \"Object\" value! vrc=%Rrc\n", vrc)); 171 return vrc; 172 172 } 173 173
Note:
See TracChangeset
for help on using the changeset viewer.