]> Cypherpunks repositories - gostls13.git/commit
internal/syscall/windows: fix ReOpenFile sentinel error value
authorqmuntal <quimmuntal@gmail.com>
Mon, 3 Nov 2025 15:29:06 +0000 (16:29 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 4 Nov 2025 20:50:33 +0000 (12:50 -0800)
commita5fe6791d79347d4c28af4b475b679ce7a726a28
tree2c06e374551b2b17d9035599ae0eb42ccd3ab871
parenta7d174ccaada72b836c1c535f056d3fff5b2d528
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.

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>
src/internal/syscall/windows/syscall_windows.go
src/internal/syscall/windows/zsyscall_windows.go