mirror of https://github.com/bjornbytes/lovr.git
Fix lovrFilesystemRead error handling;
This commit is contained in:
parent
231056e7e0
commit
c8a226fc78
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue