Browse Source

Fix drive-letter relative path log path (#221)

pull/202/head^2
Alex Yatskov 7 years ago committed by Anders Jenbo
parent
commit
6dffe84f67
  1. 6
      Source/multi.cpp

6
Source/multi.cpp

@ -47,8 +47,10 @@ void __cdecl dumphist(const char *pszFmt, ...)
va_start(va, pszFmt);
if (sgpHistFile == NULL) {
sgpHistFile = fopen("c:\\dumphist.txt", "wb");
char dumpHistPath[MAX_PATH] = {};
if (sgpHistFile == NULL && GetWindowsDirectory(dumpHistPath, sizeof(dumpHistPath))) {
strcat(dumpHistPath, "\\dumphist.txt");
sgpHistFile = fopen(dumpHistPath, "wb");
if (sgpHistFile == NULL) {
return;
}

Loading…
Cancel
Save