Fix lovrFilesystemRead error handling;

This commit is contained in:
bjorn 2017-10-21 20:23:29 -07:00
parent 231056e7e0
commit c8a226fc78
1 changed files with 3 additions and 1 deletions

View File

@ -179,7 +179,9 @@ void* lovrFilesystemRead(const char* path, size_t* bytesRead) {
}
// Open it
lovrFileOpen(file, OPEN_READ);
if (lovrFileOpen(file, OPEN_READ)) {
return NULL;
}
// Get file size
size_t size = lovrFileGetSize(file);