Skip to content

Commit abe0a0a

Browse files
thaJeztahgopherbot
authored andcommitted
windows: replace uses of Close() with CloseHandle()
Since https://golang.org/cl/4600042, Close is a straight wrapper of CloseHandle. Change-Id: I45067e3cc649ea40deb88a8d9d223d7ca882ee7f GitHub-Last-Rev: 076621a GitHub-Pull-Request: #139 Reviewed-on: https://go-review.googlesource.com/c/sys/+/441436 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Bryan Mills <[email protected]>
1 parent 68d869b commit abe0a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windows/syscall_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ func Utimes(path string, tv []Timeval) (err error) {
755755
if e != nil {
756756
return e
757757
}
758-
defer Close(h)
758+
defer CloseHandle(h)
759759
a := NsecToFiletime(tv[0].Nanoseconds())
760760
w := NsecToFiletime(tv[1].Nanoseconds())
761761
return SetFileTime(h, nil, &a, &w)
@@ -775,7 +775,7 @@ func UtimesNano(path string, ts []Timespec) (err error) {
775775
if e != nil {
776776
return e
777777
}
778-
defer Close(h)
778+
defer CloseHandle(h)
779779
a := NsecToFiletime(TimespecToNsec(ts[0]))
780780
w := NsecToFiletime(TimespecToNsec(ts[1]))
781781
return SetFileTime(h, nil, &a, &w)

0 commit comments

Comments
 (0)