mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 23:54:07 +00:00
Merge pull request #2589 from jlreymendez/master
fix: read file from windows was not returning platform error correctly
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user