Fix build on Windows.

This commit is contained in:
John Preston 2024-07-06 13:30:58 +04:00
parent f20475f07e
commit df277b366b
4 changed files with 5 additions and 5 deletions

View file

@ -571,8 +571,8 @@ void _generateDump(EXCEPTION_POINTERS* pExceptionPointers) {
} }
if (!hDumpFile || hDumpFile == INVALID_HANDLE_VALUE) { if (!hDumpFile || hDumpFile == INVALID_HANDLE_VALUE) {
WCHAR wstrPath[maxFileLen]; WCHAR wstrPath[maxFileLen];
DWORD wstrPathLen; DWORD wstrPathLen = GetEnvironmentVariable(L"APPDATA", wstrPath, maxFileLen);
if (wstrPathLen = GetEnvironmentVariable(L"APPDATA", wstrPath, maxFileLen)) { if (wstrPathLen) {
wsprintf(wstrPath + wstrPathLen, L"\\%s\\", _programName); wsprintf(wstrPath + wstrPathLen, L"\\%s\\", _programName);
hDumpFile = _generateDumpFileAtPath(wstrPath); hDumpFile = _generateDumpFileAtPath(wstrPath);
} }

@ -1 +1 @@
Subproject commit 25facad342c3280315f9ef553906f46c3eeba1e4 Subproject commit 2d2592860478e60d972b96e67ee034b8a71bb57a

@ -1 +1 @@
Subproject commit f701713cd798bd7d5f69d318fdefb125d101aa76 Subproject commit eb9496540356945e2c9fb700bcfa51444fd36f41

@ -1 +1 @@
Subproject commit 659b9181240aae16c05ef8ab7e6c4dd527afcf8a Subproject commit 363db4e49a0b78e5dd08bd922e09cf8810318c09