CPC_check_AMSDOS() fix for files below 128 bytes
This commit is contained in:
parent
4737d20757
commit
20a2620ffc
@ -741,7 +741,11 @@ int CPC_check_AMSDOS(FILE * file, word * loading_address, unsigned long * file_l
|
|||||||
|
|
||||||
fseek(file, 0, SEEK_SET);
|
fseek(file, 0, SEEK_SET);
|
||||||
if (!Read_bytes(file, data, 128))
|
if (!Read_bytes(file, data, 128))
|
||||||
|
{
|
||||||
|
// Rewind the file so it can be read normally
|
||||||
|
fseek(file, 0, SEEK_SET);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Rewind the file so it can be read normally
|
// Rewind the file so it can be read normally
|
||||||
fseek(file, 0, SEEK_SET);
|
fseek(file, 0, SEEK_SET);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user