Fixed potential crash on non-windows when using evstring_readFile

This commit is contained in:
2026-04-21 13:57:20 +02:00
parent ea9d45625d
commit dcd1beae8a
+1
View File
@@ -33,6 +33,7 @@ evstring_readFile(
if(fopen_s(&f,filePath,"rb")) return EV_INVALID(evstring); if(fopen_s(&f,filePath,"rb")) return EV_INVALID(evstring);
#else #else
f = fopen(filePath, "rb"); f = fopen(filePath, "rb");
if(f == NULL) return EV_INVALID(evstring);
#endif #endif
fseek(f, 0, SEEK_END); fseek(f, 0, SEEK_END);