diff --git a/components/crashcatcher/windowscrashshm.hpp b/components/crashcatcher/windowscrashshm.hpp index 6ac09234ba..1a88f05662 100644 --- a/components/crashcatcher/windowscrashshm.hpp +++ b/components/crashcatcher/windowscrashshm.hpp @@ -40,6 +40,8 @@ namespace Crash HANDLE mSignalApp; HANDLE mSignalMonitor; HANDLE mShmMutex; + // the size defines are in UTF-16 code units, and lots of things use more UTF-8 code units, so this may explode with really long non-ASCII paths + // we can't switch to wchar_t as when we've made this struct bigger in the past, things exploded char mDumpDirectoryPath[MAX_LONG_PATH]; char mCrashDumpFileName[MAX_FILENAME]; char mFreezeDumpFileName[MAX_FILENAME];