mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-06 18:54:12 +00:00
Zero n on error in _file_stream_proc
This commit is contained in:
@@ -66,5 +66,8 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
|
||||
if err == nil && os_err != nil {
|
||||
err = error_to_io_error(os_err)
|
||||
}
|
||||
if err != nil {
|
||||
n = 0
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user