From 13cb439a52e69a0717c8d7232a43ac33dc810337 Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Wed, 1 Nov 2023 18:23:35 +0100 Subject: [PATCH] Format --- src/app/Application.cpp | 13 ++++++------- src/index/indexer.cpp | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/app/Application.cpp b/src/app/Application.cpp index 6a97cf685..d98e55577 100644 --- a/src/app/Application.cpp +++ b/src/app/Application.cpp @@ -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, diff --git a/src/index/indexer.cpp b/src/index/indexer.cpp index 32525f318..78220f10b 100644 --- a/src/index/indexer.cpp +++ b/src/index/indexer.cpp @@ -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,