mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
fix error handling in os2.read_entire_file_from_file()
even when an error in file_size() happened, os2.ERROR_NONE was returned
This commit is contained in:
@@ -126,6 +126,7 @@ read_entire_file_from_file :: proc(f: ^File, allocator: runtime.Allocator) -> (d
|
|||||||
size = int(size64)
|
size = int(size64)
|
||||||
}
|
}
|
||||||
} else if serr != .No_Size {
|
} else if serr != .No_Size {
|
||||||
|
err = serr
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user