зеркало из https://github.com/mozilla/pjs.git
153377 disable windows-provided error popups for unresolved symbols, no disk in
drive, etc r=neil sr=jag a=asa
This commit is contained in:
Родитель
dee0ae3435
Коммит
a67ec20363
|
@ -119,9 +119,13 @@
|
||||||
#include "nsTraceMalloc.h"
|
#include "nsTraceMalloc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(DEBUG) && defined(XP_WIN32)
|
#ifdef XP_WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (XP_MACOSX)
|
#if defined (XP_MACOSX)
|
||||||
#include <Processes.h>
|
#include <Processes.h>
|
||||||
|
@ -1570,13 +1574,20 @@ int main(int argc, char* argv[])
|
||||||
NS_TIMELINE_MARK("enter main");
|
NS_TIMELINE_MARK("enter main");
|
||||||
int i; //Moved here due to portability guideline 20. See bug 258055
|
int i; //Moved here due to portability guideline 20. See bug 258055
|
||||||
|
|
||||||
#if defined(DEBUG) && defined(XP_WIN32)
|
#ifdef XP_WIN32
|
||||||
|
// Suppress the "DLL Foo could not be found" dialog, such that if dependent
|
||||||
|
// libraries (such as GDI+) are not preset, we gracefully fail to load those
|
||||||
|
// XPCOM components, instead of being ungraceful.
|
||||||
|
SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
// Disable small heap allocator to get heapwalk() giving us
|
// Disable small heap allocator to get heapwalk() giving us
|
||||||
// accurate heap numbers. Win2k non-debug does not use small heap allocator.
|
// accurate heap numbers. Win2k non-debug does not use small heap allocator.
|
||||||
// Win2k debug seems to be still using it.
|
// Win2k debug seems to be still using it.
|
||||||
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__set_sbh_threshold.asp
|
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt__set_sbh_threshold.asp
|
||||||
_set_sbh_threshold(0);
|
_set_sbh_threshold(0);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(XP_UNIX) || defined(XP_BEOS)
|
#if defined(XP_UNIX) || defined(XP_BEOS)
|
||||||
InstallUnixSignalHandlers(argv[0]);
|
InstallUnixSignalHandlers(argv[0]);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче