Skip to content

Commit 0829ab1

Browse files
kanak-clumioalexbrainman
authored andcommitted
windows: add SetFileValidData
Fixes golang/go#61834 Change-Id: Iaff01f5662aa2309e8ac41b346e0d3a42d28af91 Reviewed-on: https://go-review.googlesource.com/c/sys/+/517575 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Quim Muntal <quimmuntal@gmail.com> Reviewed-by: Quim Muntal <quimmuntal@gmail.com> Reviewed-by: Keith Randall <khr@google.com>
1 parent 32cdffc commit 0829ab1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

windows/syscall_windows.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ func NewCallbackCDecl(fn interface{}) uintptr {
194194
//sys GetComputerName(buf *uint16, n *uint32) (err error) = GetComputerNameW
195195
//sys GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) = GetComputerNameExW
196196
//sys SetEndOfFile(handle Handle) (err error)
197+
//sys SetFileValidData(handle Handle, validDataLength int64) (err error)
197198
//sys GetSystemTimeAsFileTime(time *Filetime)
198199
//sys GetSystemTimePreciseAsFileTime(time *Filetime)
199200
//sys GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) [failretval==0xffffffff]

windows/zsyscall_windows.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)