Commit c84196fe authored by Jan's avatar Jan

Fixed comments

parent 9a6a3749
......@@ -14,14 +14,14 @@
void StackWalkerToConsole::OnOutput(LPCSTR szText)
{
Writes crash dump to .OpenFlipper config directory
// Writes crash dump to .OpenFlipper config directory
std::ofstream crashFile;
QString crashName = OpenFlipper::Options::configDirStr() + QDir::separator() + "CrashDump.txt";
crashFile.open(crashName.toLatin1(),std::ios::out | std::ios::app);
crashFile << szText;
crashFile.close();
Write crash dump to console as well
// Write crash dump to console as well
StackWalker::OnOutput(szText);
}
......@@ -58,17 +58,17 @@ void connect_console()
void attachConsole()
{
try to attach the console of the parent process
// try to attach the console of the parent process
if (AttachConsole(-1))
{
if the console was attached change stdinput and output
// if the console was attached change stdinput and output
connect_console();
}
else
{
create and attach a new console if needed
// create and attach a new console if needed
#ifndef NDEBUG
always open a console in debug mode
// always open a console in debug mode
AllocConsole();
connect_console();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment