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:47:00 +0000
commita891f6f252549ea064c9925ba9a12a20ca8064c6 (patch)
treebde646cbf70a205eaf1ec2e61aa7b7b0faf2e1d2
parent0e6cad944ce21880dce7616677669d089932f7fc (diff)
downloadmongo-a891f6f252549ea064c9925ba9a12a20ca8064c6.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';
}