- Timestamp:
- Nov 14, 2014 2:27:45 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/err.h
r53213 r53330 2597 2597 /** @} */ 2598 2598 2599 /** @name Main API Status Codes 2600 * @{ 2601 */ 2602 /** The configuration constructor in main failed due to a COM error. Check 2603 * the release log of the VM for further details. */ 2604 #define VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR (-6400) 2605 /** The configuration constructor in main failed due to an internal consistency 2606 * error. Consult the release log of the VM for further details. */ 2607 #define VERR_MAIN_CONFIG_CONSTRUCTOR_IPE (-6401) 2608 /** @} */ 2609 2599 2610 2600 2611 /* SED-END */ -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r53222 r53330 529 529 HRESULT hrc; 530 530 #define MAX_DEVICES 30 531 #define H() Assert MsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_GENERAL_FAILURE)531 #define H() AssertLogRelMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR) 532 532 533 533 LONG lPortLUN[MAX_BIOS_LUN_COUNT]; … … 785 785 LogFlowFuncEnter(); 786 786 787 AssertReturn(pvConsole, VERR_ GENERAL_FAILURE);787 AssertReturn(pvConsole, VERR_INVALID_POINTER); 788 788 ComObjPtr<Console> pConsole = static_cast<Console *>(pvConsole); 789 789 … … 839 839 Bstr bstr; 840 840 841 #define H() Assert MsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_GENERAL_FAILURE)841 #define H() AssertLogRelMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR) 842 842 843 843 /* … … 2206 2206 2207 2207 default: 2208 Assert MsgFailedReturn(("invalid storage controller type: %d\n", enmCtrlType), VERR_GENERAL_FAILURE);2208 AssertLogRelMsgFailedReturn(("invalid storage controller type: %d\n", enmCtrlType), VERR_MAIN_CONFIG_CONSTRUCTOR_IPE); 2209 2209 } 2210 2210 … … 3068 3068 catch (HRESULT hrcXcpt) 3069 3069 { 3070 Assert MsgFailedReturn(("hrc=%Rhrc\n", hrcXcpt), VERR_GENERAL_FAILURE);3070 AssertLogRelMsgFailedReturn(("hrc=%Rhrc\n", hrcXcpt), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR); 3071 3071 } 3072 3072 … … 3375 3375 const char *pcszDevice = "vga"; 3376 3376 3377 #define H() Assert MsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_GENERAL_FAILURE)3377 #define H() AssertLogRelMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR) 3378 3378 InsertConfigNode(pDevices, pcszDevice, &pDev); 3379 3379 InsertConfigNode(pDev, "0", &pInst); … … 3557 3557 3558 3558 // #define RC_CHECK() AssertMsgReturn(RT_SUCCESS(rc), ("rc=%Rrc\n", rc), rc) 3559 #define H() Assert MsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_GENERAL_FAILURE)3559 #define H() AssertLogRelMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR) 3560 3560 3561 3561 LONG lDev; … … 4367 4367 Bstr bstr; 4368 4368 4369 #define H() Assert MsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_GENERAL_FAILURE)4369 #define H() AssertLogRelMsgReturn(!FAILED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR) 4370 4370 4371 4371 /* … … 5508 5508 { 5509 5509 #ifdef VBOX_WITH_GUEST_PROPS 5510 AssertReturn(pvConsole, VERR_ GENERAL_FAILURE);5510 AssertReturn(pvConsole, VERR_INVALID_POINTER); 5511 5511 ComObjPtr<Console> pConsole = static_cast<Console *>(pvConsole); 5512 AssertReturn(pConsole->m_pVMMDev, VERR_ GENERAL_FAILURE);5512 AssertReturn(pConsole->m_pVMMDev, VERR_INVALID_POINTER); 5513 5513 5514 5514 /* Load the service */ … … 5561 5561 ComSafeArrayAsOutParam(timestampsOut), 5562 5562 ComSafeArrayAsOutParam(flagsOut)); 5563 Assert MsgReturn(SUCCEEDED(hrc), ("hrc=%Rhrc\n", hrc), VERR_GENERAL_FAILURE);5563 AssertLogRelMsgReturn(SUCCEEDED(hrc), ("hrc=%Rhrc\n", hrc), VERR_MAIN_CONFIG_CONSTRUCTOR_COM_ERROR); 5564 5564 size_t cProps = namesOut.size(); 5565 5565 size_t cAlloc = cProps + 1; … … 5665 5665 { 5666 5666 #ifdef VBOX_WITH_GUEST_CONTROL 5667 AssertReturn(pvConsole, VERR_ GENERAL_FAILURE);5667 AssertReturn(pvConsole, VERR_INVALID_POINTER); 5668 5668 ComObjPtr<Console> pConsole = static_cast<Console *>(pvConsole); 5669 5669
Note:
See TracChangeset
for help on using the changeset viewer.