flush writes
This commit is contained in:
parent
d1fb5cd02b
commit
684af54c43
|
@ -183,6 +183,8 @@ int vdrvwrite(int afd, int drive, int block)
|
|||
lseek(vfd, block * 512, 0);
|
||||
if (write(vfd, block_buff, 512) != 512)
|
||||
err = 0x27; /* ProDOS I/O error */
|
||||
else
|
||||
fsync(vfd);
|
||||
}
|
||||
else
|
||||
err = 0x28; /* ProDOS No device connected error */
|
||||
|
|
Loading…
Reference in New Issue