aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2023-06-13 09:48:50 +0200
committerGitHub <noreply@github.com>2023-06-13 09:48:50 +0200
commit10fa67fdaa5aca5f3c3c63ae478bdd67a00de137 (patch)
tree815a802dca8fda5001b13e2e3438fc3be744452d
parentd97dd99d9186e7841346a7124b2224ffa8617fc5 (diff)
parent10f2136675f3437c0f74243bd45ed09d2d9a1cea (diff)
Merge pull request #2589 from jlreymendez/master
fix: read file from windows was not returning platform error correctly
-rw-r--r--core/os/os2/file_windows.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/os2/file_windows.odin b/core/os/os2/file_windows.odin
index e4ae4856a..bc1530dc7 100644
--- a/core/os/os2/file_windows.odin
+++ b/core/os/os2/file_windows.odin
@@ -287,7 +287,7 @@ _read :: proc(f: ^File, p: []byte) -> (n: int, err: Error) {
}
}
- return int(total_read), nil
+ return int(total_read), err
}
_read_at :: proc(f: ^File, p: []byte, offset: i64) -> (n: int, err: Error) {