diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-07-21 16:26:52 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-07-21 16:26:52 -0400 |
commit | ca5bd96bb0d60c795b78c883e91792d4a68ad2c1 (patch) | |
tree | 44476d0a8e3cf0f2d32e9d7c9e8ef1c950fae306 /indra/win_crash_logger/win_crash_logger.cpp | |
parent | 4311ee30ec52260f38ac20e70a0fc1847cc4b7d0 (diff) | |
parent | d26356d7e16191da90cae23d3871d4e7289e175f (diff) |
merge
Diffstat (limited to 'indra/win_crash_logger/win_crash_logger.cpp')
-rw-r--r-- | indra/win_crash_logger/win_crash_logger.cpp | 35 |
1 files changed, 7 insertions, 28 deletions
diff --git a/indra/win_crash_logger/win_crash_logger.cpp b/indra/win_crash_logger/win_crash_logger.cpp index 5c22053317..8e916ae437 100644 --- a/indra/win_crash_logger/win_crash_logger.cpp +++ b/indra/win_crash_logger/win_crash_logger.cpp @@ -24,51 +24,30 @@ * $/LicenseInfo$ */ -// win_crash_logger.cpp : Defines the entry point for the application. -// - -// Must be first include, precompiled headers. #include "linden_common.h" - #include "stdafx.h" - #include <stdlib.h> - #include "llcrashloggerwindows.h" - - -// -// Implementation -// - int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { - llinfos << "Starting crash reporter" << llendl; + llinfos << "Starting crash reporter." << llendl; LLCrashLoggerWindows app; app.setHandle(hInstance); - bool ok = app.init(); - if(!ok) + app.parseCommandOptions(__argc, __argv); + + if (! app.init()) { llwarns << "Unable to initialize application." << llendl; return -1; } - // Run the application main loop - if(!LLApp::isQuitting()) app.mainLoop(); - - if (!app.isError()) - { - // - // We don't want to do cleanup here if the error handler got called - - // the assumption is that the error handler is responsible for doing - // app cleanup if there was a problem. - // - app.cleanup(); - } + app.mainLoop(); + app.cleanup(); + llinfos << "Crash reporter finished normally." << llendl; return 0; } |