Fix an issue with memory.bin in wine
This commit is contained in:
parent
af8384703e
commit
5746525289
|
@ -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(
|
HANDLE hFileMapping = CreateFileMapping(
|
||||||
hFile,
|
hFile,
|
||||||
/* lpFileMappingAttributes */nullptr,
|
/* lpFileMappingAttributes */nullptr,
|
||||||
|
|
Loading…
Reference in New Issue