1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-28 23:46:38 +02:00

Fix bug in Windows crash reporter, was sometimes missing crashes

as it always ignored the first core file.
This commit is contained in:
Bram Matthys
2019-11-15 09:06:05 +01:00
parent 564cf26d56
commit 840995d994
+2 -2
View File
@@ -63,7 +63,7 @@ char *find_best_coredump(void)
if (hFile == INVALID_HANDLE_VALUE)
return NULL;
while (FindNextFile(hFile, &hData))
do
{
char *fname = hData.cFileName;
if (!strstr(fname, ".done"))
@@ -77,7 +77,7 @@ char *find_best_coredump(void)
strlcpy(best_fname, buf, sizeof(best_fname));
}
}
}
} while (FindNextFile(hFile, &hData));
FindClose(hFile);
#endif