VirtualBox

Ignore:
Timestamp:
Jul 23, 2008 7:56:36 PM (17 years ago)
Author:
vboxsync
Message:

Made annoying assertion in setVMErrorCallback ignorable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r10814 r10842  
    57095709
    57105710    /* For now, this may be called only once. Ignore subsequent calls. */
    5711     AssertMsgReturnVoid (task->mErrorMsg.isNull(),
    5712                          ("Cannot set error to '%s': it is already set to '%s'",
    5713                          errorMsg.raw(), task->mErrorMsg.raw()));
     5711    if (!task->mErrorMsg.isNull())
     5712    {
     5713#if !defined(DEBUG_bird)
     5714        AssertMsgFailed (("Cannot set error to '%s': it is already set to '%s'",
     5715                          errorMsg.raw(), task->mErrorMsg.raw()));
     5716#endif
     5717        return;
     5718    }
    57145719
    57155720    task->mErrorMsg = errorMsg;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette