Fixed potential crash on non-windows when using evstring_readFile
This commit is contained in:
@@ -33,6 +33,7 @@ evstring_readFile(
|
||||
if(fopen_s(&f,filePath,"rb")) return EV_INVALID(evstring);
|
||||
#else
|
||||
f = fopen(filePath, "rb");
|
||||
if(f == NULL) return EV_INVALID(evstring);
|
||||
#endif
|
||||
|
||||
fseek(f, 0, SEEK_END);
|
||||
|
||||
Reference in New Issue
Block a user