mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Use 32767 characters for log path
This commit is contained in:
parent
3eb2b32123
commit
f400116bcd
2 changed files with 3 additions and 2 deletions
|
@ -136,7 +136,7 @@ namespace Crash
|
||||||
|
|
||||||
memset(mShm->mStartup.mLogFilePath, 0, sizeof(mShm->mStartup.mLogFilePath));
|
memset(mShm->mStartup.mLogFilePath, 0, sizeof(mShm->mStartup.mLogFilePath));
|
||||||
int length = crashLogPath.length();
|
int length = crashLogPath.length();
|
||||||
if (length > MAX_PATH) length = MAX_PATH;
|
if (length > MAX_LONG_PATH) length = MAX_LONG_PATH;
|
||||||
strncpy(mShm->mStartup.mLogFilePath, crashLogPath.c_str(), length);
|
strncpy(mShm->mStartup.mLogFilePath, crashLogPath.c_str(), length);
|
||||||
mShm->mStartup.mLogFilePath[length] = '\0';
|
mShm->mStartup.mLogFilePath[length] = '\0';
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ namespace Crash
|
||||||
{
|
{
|
||||||
|
|
||||||
// Used to communicate between the app and the monitor, fields are is overwritten with each event.
|
// Used to communicate between the app and the monitor, fields are is overwritten with each event.
|
||||||
|
static constexpr const int MAX_LONG_PATH = 0x7fff;
|
||||||
|
|
||||||
struct CrashSHM
|
struct CrashSHM
|
||||||
{
|
{
|
||||||
|
@ -28,7 +29,7 @@ namespace Crash
|
||||||
HANDLE mSignalApp;
|
HANDLE mSignalApp;
|
||||||
HANDLE mSignalMonitor;
|
HANDLE mSignalMonitor;
|
||||||
HANDLE mShmMutex;
|
HANDLE mShmMutex;
|
||||||
char mLogFilePath[MAX_PATH + 1];
|
char mLogFilePath[MAX_LONG_PATH];
|
||||||
} mStartup;
|
} mStartup;
|
||||||
|
|
||||||
struct Crashed
|
struct Crashed
|
||||||
|
|
Loading…
Reference in a new issue