Fix an issue with memory.bin in wine

This commit is contained in:
ergo720 2018-01-03 12:57:20 +01:00
parent af8384703e
commit 5746525289
1 changed files with 4 additions and 0 deletions

View File

@ -303,6 +303,10 @@ void *CxbxRestoreContiguousMemory(char *szFilePath_memory_bin)
}
}
// Make sure memory.bin is at least 128 MB in size
SetFilePointer(hFile, CHIHIRO_MEMORY_SIZE, nullptr, FILE_BEGIN);
SetEndOfFile(hFile);
HANDLE hFileMapping = CreateFileMapping(
hFile,
/* lpFileMappingAttributes */nullptr,