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:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user