diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-08-14 22:12:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-14 22:12:06 +0100 |
| commit | 6e91f6ab31f7a8a3f9474c06c18cdffacd4815ff (patch) | |
| tree | a4b5263fd539f34f9e13e0f42775397b556dd24c | |
| parent | b16d5198a36cc465b6fadd66338af87f39a5d6ae (diff) | |
| parent | 6422e4925500a4a4c054c75ad1517336615cf659 (diff) | |
Merge pull request #4081 from DerTee/master
fix error handling in os2.read_entire_file_from_file()
| -rw-r--r-- | core/os/os2/file_util.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/os/os2/file_util.odin b/core/os/os2/file_util.odin index 97e6090a3..90ce96223 100644 --- a/core/os/os2/file_util.odin +++ b/core/os/os2/file_util.odin @@ -126,6 +126,7 @@ read_entire_file_from_file :: proc(f: ^File, allocator: runtime.Allocator) -> (d size = int(size64) } } else if serr != .No_Size { + err = serr return } |