vfs: make vfs_read_file_by_path return error on error
This commit is contained in:
+5
-1
@@ -198,7 +198,11 @@ int vfs_read_file_by_path(const char* path, uint8_t** buffer)
|
|||||||
|
|
||||||
l9660_status err;
|
l9660_status err;
|
||||||
|
|
||||||
follow_path(path, file, dir);
|
err = follow_path(path, file, dir);
|
||||||
|
if(err != L9660_OK)
|
||||||
|
{
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
debug_log("HEHE %s\n", path);
|
debug_log("HEHE %s\n", path);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user