commit f7f5896
Devine Lu Linvega
·
2026-06-21 17:54:37 +0000 UTC
parent d8aac59
(File) Fixed issue with overflow
1 files changed,
+1,
-1
+1,
-1
1@@ -834,7 +834,7 @@ file_read(unsigned int id, Uint16 addr, unsigned int len)
2 if(ufs[id].filepath == 0)
3 return 0;
4 if(addr + len > 0x10000)
5- len = 0x10000 - addr;
6+ length = 0x10000 - addr;
7 if(!file_open(id, 0, 0))
8 return 0;
9 if(ufs[id].state == FILE_READ)