summaryrefslogtreecommitdiff
path: root/indra/win_crash_logger/win_crash_logger.cpp
diff options
context:
space:
mode:
authorMark Palange <palange@lindenlab.com>2008-12-23 19:39:58 +0000
committerMark Palange <palange@lindenlab.com>2008-12-23 19:39:58 +0000
commitfb793870fe95f1951d7c30ea6068e187b9dededd (patch)
tree6d11632353ff4fb07133625ec5031b135b1e2882 /indra/win_crash_logger/win_crash_logger.cpp
parentd182b9fb82b9c63f41d81bc80dbbfe627475facf (diff)
QAR-1142 merging 1.22 RC0-RC4 changes.
svn merge -c 106471 svn+ssh://svn.lindenlab.com/svn/linden/qa/viewer_1-22-106055_merge
Diffstat (limited to 'indra/win_crash_logger/win_crash_logger.cpp')
-rw-r--r--indra/win_crash_logger/win_crash_logger.cpp49
1 files changed, 1 insertions, 48 deletions
diff --git a/indra/win_crash_logger/win_crash_logger.cpp b/indra/win_crash_logger/win_crash_logger.cpp
index 8f339d6661..ba0d6fbc9e 100644
--- a/indra/win_crash_logger/win_crash_logger.cpp
+++ b/indra/win_crash_logger/win_crash_logger.cpp
@@ -54,56 +54,9 @@ int APIENTRY WinMain(HINSTANCE hInstance,
{
llinfos << "Starting crash reporter" << llendl;
- // In Win32, we need to generate argc and argv ourselves...
- // Note: GetCommandLine() returns a potentially return a LPTSTR
- // which can resolve to a LPWSTR (unicode string).
- // (That's why it's different from lpCmdLine which is a LPSTR.)
- // We don't currently do unicode, so call the non-unicode version
- // directly.
- llinfos << "Processing command line" << llendl;
- LPSTR cmd_line_including_exe_name = GetCommandLineA();
-
- const S32 MAX_ARGS = 100;
- int argc = 0;
- char *argv[MAX_ARGS];
-
- char *token = NULL;
- if( cmd_line_including_exe_name[0] == '\"' )
- {
- // Exe name is enclosed in quotes
- token = strtok( cmd_line_including_exe_name, "\"" );
- argv[argc++] = token;
- token = strtok( NULL, " \t," );
- }
- else
- {
- // Exe name is not enclosed in quotes
- token = strtok( cmd_line_including_exe_name, " \t," );
- }
-
- while( (token != NULL) && (argc < MAX_ARGS) )
- {
- argv[argc++] = token;
- /* Get next token: */
- if (*(token + strlen(token) + 1) == '\"')
- {
- token = strtok( NULL, "\"");
- }
- else
- {
- token = strtok( NULL, " \t," );
- }
- }
-
LLCrashLoggerWindows app;
- bool ok = app.parseCommandOptions(argc, argv);
- if(!ok)
- {
- llwarns << "Unable to parse command line." << llendl;
- }
-
app.setHandle(hInstance);
- ok = app.init();
+ bool ok = app.init();
if(!ok)
{
llwarns << "Unable to initialize application." << llendl;