From 6422e4925500a4a4c054c75ad1517336615cf659 Mon Sep 17 00:00:00 2001 From: DerTee Date: Wed, 14 Aug 2024 17:30:02 +0200 Subject: [PATCH] fix error handling in os2.read_entire_file_from_file() even when an error in file_size() happened, os2.ERROR_NONE was returned --- core/os/os2/file_util.odin | 1 + 1 file changed, 1 insertion(+) 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 }