Skip to content

Commit

Permalink
Added version file
Browse files Browse the repository at this point in the history
Signed-off-by: 邓佳佳 <[email protected]>
  • Loading branch information
nmgwddj committed Oct 16, 2018
1 parent 7084ad2 commit 562667b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/app_dump.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <DbgHelp.h>

static const std::wstring kCmdAppCrash = L"AppCrash";
bool g_need_restart_after_dump = false;

BOOL CALLBACK MyMiniDumpCallback(PVOID, const PMINIDUMP_CALLBACK_INPUT input, PMINIDUMP_CALLBACK_OUTPUT output)
{
Expand Down Expand Up @@ -65,11 +64,8 @@ LONG WINAPI MyUnhandledExceptionFilter(EXCEPTION_POINTERS* exp)

WriteDump(exp, dir);

if (g_need_restart_after_dump)
{
std::wstring cmd = nbase::StringPrintf(L" /%s %s ", kCmdAppCrash.c_str(), dir.c_str());
QCommand::RestartApp(cmd);
}
std::wstring cmd = nbase::StringPrintf(L" /%s %s ", kCmdAppCrash.c_str(), dir.c_str());
QCommand::RestartApp(cmd);

return EXCEPTION_EXECUTE_HANDLER;
}
Binary file modified src/logs_monitor.rc
Binary file not shown.
3 changes: 2 additions & 1 deletion src/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@
// helper
#include "shared/closure.h"

#define APP_DATA_DIR L"logs_monitor\\"
// app folder
#define APP_DATA_DIR L"LogsMonitor\\"

0 comments on commit 562667b

Please sign in to comment.