VirtualBox

Changeset 10842

Show
Ignore:
Timestamp:
07/23/08 21:56:36 (3 months ago)
Author:
vboxsync
Message:

Made annoying assertion in setVMErrorCallback ignorable.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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; 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy