Fix: config and park files not selected on crash (#11251)

This commit is contained in:
Hielke Morsink 2020-04-08 20:00:02 +02:00 committed by GitHub
parent a197e529e8
commit c0486e250e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -266,16 +266,18 @@ static bool OnCrash(
if (SUCCEEDED(coInitializeResult))
{
LPITEMIDLIST pidl = ILCreateFromPathW(dumpPath);
LPITEMIDLIST files[4];
LPITEMIDLIST files[6];
uint32_t numFiles = 0;
files[numFiles++] = ILCreateFromPathW(dumpFilePath);
// There should be no need to check if this file exists, if it doesn't
// it simply shouldn't get selected.
files[numFiles++] = ILCreateFromPathW(dumpFilePathGZIP);
files[numFiles++] = ILCreateFromPathW(configFilePath);
if (savedGameDumped)
{
files[numFiles++] = ILCreateFromPathW(saveFilePath);
files[numFiles++] = ILCreateFromPathW(saveFilePathGZIP);
}
if (with_record)
{