jirentabu / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

Incorrect quotes in command line when restarting the app #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I discovered a problem with restarting application when parameters are 
specified. CrashSender starts the application with quoted parameters. So for 
example if I specify in my program:
info.pszRestartCmdLine = _T("/config user_profile");
application is started as:
"my_crashrpt_tester.exe" "/config used_profile" and it receives both parameters 
as one parameter. The problem is on the line:
        sCmdLine.Format(_T("\"%s\" \"%s\""), g_CrashInfo.GetReport(m_​nCurReport).m_sImageName, 
            g_CrashInfo.m_sRestartCmdLine.​GetBuffer(0));

Original issue reported on code.google.com by zexspect...@gmail.com on 23 Mar 2012 at 9:06

GoogleCodeExporter commented 9 years ago
This seems to be already fixed in current revision (r1358) of trunk.

Original comment by zexspect...@gmail.com on 26 Aug 2012 at 6:46