mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
OS/2 code only - make it easier to turn off popup asserts if necessary by restructuring code
This commit is contained in:
parent
4cd0454803
commit
5550d64b88
@ -268,9 +268,10 @@ NS_COM void nsDebug::Assertion(const char* aStr, const char* aExpr,
|
||||
PR_snprintf(msg, sizeof(msg),
|
||||
"%s\n\nClick Cancel to Debug Application.\n"
|
||||
"Click Enter to continue running the Application.", buf);
|
||||
ULONG code = WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, msg,
|
||||
"nsDebug::Assertion", 0,
|
||||
MB_ERROR | MB_ENTERCANCEL);
|
||||
ULONG code = MBID_ERROR;
|
||||
code = WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, msg,
|
||||
"nsDebug::Assertion", 0,
|
||||
MB_ERROR | MB_ENTERCANCEL);
|
||||
|
||||
/* It is possible that we are executing on a thread that doesn't have a
|
||||
* message queue. In that case, the message won't appear, and code will
|
||||
|
@ -268,9 +268,10 @@ NS_COM void nsDebug::Assertion(const char* aStr, const char* aExpr,
|
||||
PR_snprintf(msg, sizeof(msg),
|
||||
"%s\n\nClick Cancel to Debug Application.\n"
|
||||
"Click Enter to continue running the Application.", buf);
|
||||
ULONG code = WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, msg,
|
||||
"nsDebug::Assertion", 0,
|
||||
MB_ERROR | MB_ENTERCANCEL);
|
||||
ULONG code = MBID_ERROR;
|
||||
code = WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, msg,
|
||||
"nsDebug::Assertion", 0,
|
||||
MB_ERROR | MB_ENTERCANCEL);
|
||||
|
||||
/* It is possible that we are executing on a thread that doesn't have a
|
||||
* message queue. In that case, the message won't appear, and code will
|
||||
|
Loading…
x
Reference in New Issue
Block a user