mirror of
https://github.com/simtactics/niotso.git
synced 2025-07-12 17:22:23 -04:00
Added rtti-reader and made various cleanups, switching to Shutdown_M for error handling
This commit is contained in:
parent
5444c9aea6
commit
6dddbd2efa
25 changed files with 771 additions and 194 deletions
|
@ -45,9 +45,9 @@ uint8_t * ReadFile(const char * Filename){
|
|||
}
|
||||
|
||||
size_t bytestransferred = fread(InData, 1, FileSize, hFile);
|
||||
fclose(hFile);
|
||||
if(bytestransferred != FileSize){
|
||||
free(InData);
|
||||
fclose(hFile);
|
||||
File::Error = FERR_READ;
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue