Skip to content

Commit 12b1d1c

Browse files
committed
windows/mkwinsyscall: remove errnoERROR_IO_PENDING const
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 84dc82d commit 12b1d1c

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

windows/mkwinsyscall/mkwinsyscall.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -904,12 +904,8 @@ var _ unsafe.Pointer
904904
905905
// Do the interface allocations only once for common
906906
// Errno values.
907-
const (
908-
errnoERROR_IO_PENDING = 997
909-
)
910-
911907
var (
912-
errERROR_IO_PENDING error = {{syscalldot}}Errno(errnoERROR_IO_PENDING)
908+
errERROR_IO_PENDING error = {{windowsdot}}ERROR_IO_PENDING
913909
errERROR_EINVAL error = {{syscalldot}}EINVAL
914910
)
915911
@@ -919,7 +915,7 @@ func errnoErr(e {{syscalldot}}Errno) error {
919915
switch e {
920916
case 0:
921917
return errERROR_EINVAL
922-
case errnoERROR_IO_PENDING:
918+
case {{windowsdot}}ERROR_IO_PENDING:
923919
return errERROR_IO_PENDING
924920
}
925921
// TODO: add more here, after collecting data on the common

windows/registry/zsyscall_windows.go

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

windows/zsyscall_windows.go

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

0 commit comments

Comments
 (0)