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,