Fix typo in DIM_WriteDisk() when libz is not used (reported by Darren Birks)

This commit is contained in:
Nicolas Pomarède committed 2026-10-04 10:28:21 +02:00
1 parent 028dbf7f01
commit 0af3e2f652
1 file changed
+3 -3
+3 -3
View File
@@ -141,10 +141,10 @@ bool DIM_WriteDisk(int Drive, const char *pszFileName, uint8_t *pBuffer, int Ima
}
#else
fhdl = fopen(pszFileName, "rb");
if (fhndl != NULL)
if (fhdl != NULL)
{
fread(pDimFile, 32, 1, fhndl);
fclose(fhndl);
fread(pDimFile, 32, 1, fhdl);
fclose(fhdl);
}
#endif