Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Murmele committed Nov 1, 2023
1 parent b742692 commit 13cb439
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions src/app/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,16 @@ static LONG WINAPI exceptionFilter(PEXCEPTION_POINTERS info) {
GetTempPath(MAX_PATH, temp);

wchar_t dir[MAX_PATH];
const wchar_t* gittyup_name = L"%sGittyup";
const wchar_t *gittyup_name = L"%sGittyup";
StringCchPrintf(dir, MAX_PATH, gittyup_name, temp);
CreateDirectory(dir, NULL);

wchar_t fileName[MAX_PATH];
const wchar_t* s = L"%s\\%s-%s-%04d%02d%02d-%02d%02d%02d-%ld-%ld.dmp";
StringCchPrintf(
fileName, MAX_PATH, s,
dir, GITTYUP_NAME, GITTYUP_VERSION, localTime.wYear, localTime.wMonth,
localTime.wDay, localTime.wHour, localTime.wMinute, localTime.wSecond,
GetCurrentProcessId(), GetCurrentThreadId());
const wchar_t *s = L"%s\\%s-%s-%04d%02d%02d-%02d%02d%02d-%ld-%ld.dmp";
StringCchPrintf(fileName, MAX_PATH, s, dir, GITTYUP_NAME, GITTYUP_VERSION,
localTime.wYear, localTime.wMonth, localTime.wDay,
localTime.wHour, localTime.wMinute, localTime.wSecond,
GetCurrentProcessId(), GetCurrentThreadId());

HANDLE dumpFile =
CreateFile(fileName, GENERIC_READ | GENERIC_WRITE,
Expand Down
13 changes: 6 additions & 7 deletions src/index/indexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@ static LONG WINAPI exceptionFilter(PEXCEPTION_POINTERS info) {
GetTempPath(MAX_PATH, temp);

wchar_t dir[MAX_PATH];
const wchar_t* gittyup_name = L"%sGittyup";
const wchar_t *gittyup_name = L"%sGittyup";
StringCchPrintf(dir, MAX_PATH, gittyup_name, temp);
CreateDirectory(dir, NULL);

wchar_t fileName[MAX_PATH];
const wchar_t* s = L"%s\\%s-%s-%04d%02d%02d-%02d%02d%02d-%ld-%ld.dmp";
StringCchPrintf(
fileName, MAX_PATH, s,
dir, "indexer", GITTYUP_VERSION, localTime.wYear, localTime.wMonth,
localTime.wDay, localTime.wHour, localTime.wMinute, localTime.wSecond,
GetCurrentProcessId(), GetCurrentThreadId());
const wchar_t *s = L"%s\\%s-%s-%04d%02d%02d-%02d%02d%02d-%ld-%ld.dmp";
StringCchPrintf(fileName, MAX_PATH, s, dir, "indexer", GITTYUP_VERSION,
localTime.wYear, localTime.wMonth, localTime.wDay,
localTime.wHour, localTime.wMinute, localTime.wSecond,
GetCurrentProcessId(), GetCurrentThreadId());

HANDLE dumpFile =
CreateFile(fileName, GENERIC_READ | GENERIC_WRITE,
Expand Down

0 comments on commit 13cb439

Please sign in to comment.