]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.25] internal/syscall/windows: fix ReOpenFile sentinel error value
authorqmuntal <quimmuntal@gmail.com>
Mon, 3 Nov 2025 15:29:06 +0000 (16:29 +0100)
committerCherry Mui <cherryyz@google.com>
Tue, 25 Nov 2025 16:31:41 +0000 (08:31 -0800)
commit433c01e94efe72f985096839d0631103b3163be6
tree13b0702794d2d9a267d1f530102bbd056ee41f9d
parentf2cd93aa0505465c1d30201c806b6d4d3481c5fa
[release-branch.go1.25] internal/syscall/windows: fix ReOpenFile sentinel error value

ReOpenFile is documented to return INVALID_HANDLE_VALUE on error,
but the previous definition was checking for 0 instead.

ReOpenFile was added to the go1.25 release branch in CL 715360. This new CL amends it.

Fixes #76360
Updates #75989

Change-Id: Idec5e75e40b9f6c409e068d63a9b606781e80a46
Reviewed-on: https://go-review.googlesource.com/c/go/+/717320
Auto-Submit: Quim Muntal <quimmuntal@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
(cherry picked from commit CL 717320)
Reviewed-on: https://go-review.googlesource.com/c/go/+/718000
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/internal/syscall/windows/syscall_windows.go
src/internal/syscall/windows/zsyscall_windows.go