Zero n on error in _file_stream_proc
This commit is contained in:
1 parent
eb92a2df71
commit
741ccd7ff5
1 file changed
+3
@@ -66,5 +66,8 @@ _file_stream_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte,
|
|||||||
if err == nil && os_err != nil {
|
if err == nil && os_err != nil {
|
||||||
err = error_to_io_error(os_err)
|
err = error_to_io_error(os_err)
|
||||||
}
|
}
|
||||||
|
if err != nil {
|
||||||
|
n = 0
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user