From 076621a25c765dc229256d85812ee06cc54b52dd Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 9 Oct 2022 13:26:08 +0200 Subject: [PATCH] windows: replace uses of Close() with CloseHandle() Since https://golang.org/cl/4600042, Close is a straight wrapper of CloseHandle. Signed-off-by: Sebastiaan van Stijn --- windows/syscall_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/syscall_windows.go b/windows/syscall_windows.go index 5f4f0430..7a6ba43a 100644 --- a/windows/syscall_windows.go +++ b/windows/syscall_windows.go @@ -755,7 +755,7 @@ func Utimes(path string, tv []Timeval) (err error) { if e != nil { return e } - defer Close(h) + defer CloseHandle(h) a := NsecToFiletime(tv[0].Nanoseconds()) w := NsecToFiletime(tv[1].Nanoseconds()) return SetFileTime(h, nil, &a, &w) @@ -775,7 +775,7 @@ func UtimesNano(path string, ts []Timespec) (err error) { if e != nil { return e } - defer Close(h) + defer CloseHandle(h) a := NsecToFiletime(TimespecToNsec(ts[0])) w := NsecToFiletime(TimespecToNsec(ts[1])) return SetFileTime(h, nil, &a, &w)