Commit c84196fe authored by Jan's avatar Jan
Browse files

Fixed comments

parent 9a6a3749
...@@ -14,14 +14,14 @@ ...@@ -14,14 +14,14 @@
void StackWalkerToConsole::OnOutput(LPCSTR szText) void StackWalkerToConsole::OnOutput(LPCSTR szText)
{ {
Writes crash dump to .OpenFlipper config directory // Writes crash dump to .OpenFlipper config directory
std::ofstream crashFile; std::ofstream crashFile;
QString crashName = OpenFlipper::Options::configDirStr() + QDir::separator() + "CrashDump.txt"; QString crashName = OpenFlipper::Options::configDirStr() + QDir::separator() + "CrashDump.txt";
crashFile.open(crashName.toLatin1(),std::ios::out | std::ios::app); crashFile.open(crashName.toLatin1(),std::ios::out | std::ios::app);
crashFile << szText; crashFile << szText;
crashFile.close(); crashFile.close();
Write crash dump to console as well // Write crash dump to console as well
StackWalker::OnOutput(szText); StackWalker::OnOutput(szText);
} }
...@@ -58,17 +58,17 @@ void connect_console() ...@@ -58,17 +58,17 @@ void connect_console()
void attachConsole() void attachConsole()
{ {
try to attach the console of the parent process // try to attach the console of the parent process
if (AttachConsole(-1)) if (AttachConsole(-1))
{ {
if the console was attached change stdinput and output // if the console was attached change stdinput and output
connect_console(); connect_console();
} }
else else
{ {
create and attach a new console if needed // create and attach a new console if needed
#ifndef NDEBUG #ifndef NDEBUG
always open a console in debug mode // always open a console in debug mode
AllocConsole(); AllocConsole();
connect_console(); 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