mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 17:38:36 +00:00
r=dougt, a=brendan Don't DebugBreak if the messagebox got an error displaying
This commit is contained in:
parent
25b16b52f3
commit
b4fb77cbcc
@ -242,8 +242,11 @@ NS_COM void nsDebug::Assertion(const char* aStr, const char* aExpr,
|
||||
* message queue. In that case, the message won't appear, and code will
|
||||
* be 0xFFFF. We'll give the user a chance to debug it by calling
|
||||
* Break()
|
||||
* Actually, that's a really bad idea since this happens a lot with threadsafe
|
||||
* assertions and since it means that you can't actually run the debug build
|
||||
* outside a debugger without it crashing constantly.
|
||||
*/
|
||||
if( code == MBID_ENTER )
|
||||
if(( code == MBID_ENTER ) || (code == MBID_ERROR))
|
||||
{
|
||||
return;
|
||||
// If Retry, Fall Through
|
||||
|
@ -242,8 +242,11 @@ NS_COM void nsDebug::Assertion(const char* aStr, const char* aExpr,
|
||||
* message queue. In that case, the message won't appear, and code will
|
||||
* be 0xFFFF. We'll give the user a chance to debug it by calling
|
||||
* Break()
|
||||
* Actually, that's a really bad idea since this happens a lot with threadsafe
|
||||
* assertions and since it means that you can't actually run the debug build
|
||||
* outside a debugger without it crashing constantly.
|
||||
*/
|
||||
if( code == MBID_ENTER )
|
||||
if(( code == MBID_ENTER ) || (code == MBID_ERROR))
|
||||
{
|
||||
return;
|
||||
// If Retry, Fall Through
|
||||
|
Loading…
x
Reference in New Issue
Block a user