summaryrefslogtreecommitdiff
path: root/src/os/file_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/file_windows.go')
-rw-r--r--src/os/file_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/file_windows.go b/src/os/file_windows.go
index e78d4abf6..3b5519390 100644
--- a/src/os/file_windows.go
+++ b/src/os/file_windows.go
@@ -295,7 +295,7 @@ func (f *File) read(b []byte) (n int, err error) {
if f.isConsole {
return f.readConsole(b)
}
- return syscall.Read(f.fd, b)
+ return fixCount(syscall.Read(f.fd, b))
}
// pread reads len(b) bytes from the File starting at byte offset off.
@@ -376,7 +376,7 @@ func (f *File) write(b []byte) (n int, err error) {
if f.isConsole {
return f.writeConsole(b)
}
- return syscall.Write(f.fd, b)
+ return fixCount(syscall.Write(f.fd, b))
}
// pwrite writes len(b) bytes to the File starting at byte offset off.