mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Merge pull request #2390 from SnikoLoft/patch-1
Fix for Win 3.x corrupt Group files in FAT image files #2381
This commit is contained in:
@@ -440,10 +440,9 @@ bool fatFile::Write(const uint8_t * data, uint16_t *size) {
|
||||
if(loadedSector) myDrive->writeSector(currentSector, sectorBuffer);
|
||||
loadedSector = false;
|
||||
|
||||
if (sizedec == 0) { curSectOff = 0; goto finalizeWrite; }
|
||||
|
||||
currentSector = myDrive->getAbsoluteSectFromBytePos(firstCluster, seekpos);
|
||||
if(currentSector == 0) {
|
||||
if (sizedec == 0) goto finalizeWrite;
|
||||
/* EOC reached before EOF - try to increase file allocation */
|
||||
myDrive->appendCluster(firstCluster);
|
||||
/* Try getting sector again */
|
||||
|
Reference in New Issue
Block a user