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);
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user