Zero n on error in _file_stream_proc

This commit is contained in:
Feoramund authored and Laytan committed 2024-08-28 19:53:20 +02:00
1 parent eb92a2df71
commit 741ccd7ff5
1 file changed
+3
+3
View File
@@ -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
}