summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-08-08 12:14:12 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-24 15:55:15 +0000
commit4c4e1d0055ccfd3ca8f137d834a7b194a0961160 (patch)
tree9a8ab502b5011f382883fca06e4dae1d668bfb00
parent49fd4f482bf07f2c0131c7779235ddcb778a5f25 (diff)
downloadmongo-4c4e1d0055ccfd3ca8f137d834a7b194a0961160.tar.gz
SERVER-38119 Windows dump file naming does not account for dots in directory names
(cherry picked from commit ff468c0b65af2cc978aa549d0ec7ed56553abf5a)
-rw-r--r--src/mongo/util/exception_filter_win32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/exception_filter_win32.cpp b/src/mongo/util/exception_filter_win32.cpp
index b830c639d1f..7575b914012 100644
--- a/src/mongo/util/exception_filter_win32.cpp
+++ b/src/mongo/util/exception_filter_win32.cpp
@@ -69,7 +69,7 @@ void doMinidumpWithException(struct _EXCEPTION_POINTERS* exceptionInfo) {
// Fallback name
wcscpy_s(moduleFileName, L"mongo");
} else {
- WCHAR* dotStr = wcschr(&moduleFileName[0], L'.');
+ WCHAR* dotStr = wcsrchr(&moduleFileName[0], L'.');
if (dotStr != NULL) {
*dotStr = L'\0';
}