Opened 4 years ago
Closed 4 years ago
#19939 closed defect (fixed)
Assertion in MachineImpl.cpp can never fail => fixed in svn/6.1.x x>16
Reported by: | nfeske | Owned by: | paulson |
---|---|---|---|
Component: | VM control | Version: | VirtualBox 6.1.14 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description
At the beginning of the function Machine::initDataAndChildObjects, a boolean expression is passed as RC argument to the macro AssertComRCReturn:
AssertComRCReturn( getObjectState().getState() == ObjectState::InInit || getObjectState().getState() == ObjectState::Limited, E_FAIL);
When compiling with XPCOM, the value of the expression can never yield a NS error value (bit 31 is never set).
I presume that AssertComRCReturn should be replaced by AssertReturn.
Change History (2)
comment:1 by , 4 years ago
Owner: | set to |
---|---|
Status: | new → accepted |
comment:2 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Summary: | Assertion in MachineImpl.cpp can never fail → Assertion in MachineImpl.cpp can never fail => fixed in svn/6.1.x x>16 |
Note:
See TracTickets
for help on using tickets.
Thanks for the bug report, nicely spotted! We've fixed this in the development release of VirtualBox and also in the 6.1 branch of VirtualBox. Thus the fix will be part of the next maintenance release of VirtualBox 6.1.x.