fixes to matfx

This commit is contained in:
aap
2017-07-29 16:09:11 +02:00
parent a3d8e3ba01
commit f043126233
4 changed files with 32 additions and 16 deletions
+3
View File
@@ -874,6 +874,7 @@ StreamMemory::getLength(void)
StreamFile*
StreamFile::open(const char *path, const char *mode)
{
assert(this->file == nil);
this->file = fopen(path, mode);
if(this->file == nil){
RWERROR((ERR_FILE, path));
@@ -885,7 +886,9 @@ StreamFile::open(const char *path, const char *mode)
void
StreamFile::close(void)
{
assert(this->file);
fclose(this->file);
this->file = nil;
}
uint32