Skip to content

x/sys: windows.WTD_STATEACTION_VERIFY has incorrect value #46906

Closed

Description

@konangc87

What version of Go are you using (go version)?

$ go version
go version go1.16.5 windows/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\fedegc\AppData\Local\go-build
set GOENV=C:\Users\fedegc\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\fedegc\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\fedegc\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.16.5
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\fedegc\AppData\Local\Temp\go-build2839842620=/tmp/go-build -gno-record-gcc-switches

What did you do?

What did you expect to see?

windows.WTD_STATEACTION_VERIFY value is 0x00000001 (according to msdn)

What did you see instead?

windows.WTD_STATEACTION_VERIFY value is 0x00000010 (types_windows.go)

Activity

  1. changed the title [-]windows.WTD_STATEACTION_VERIFY wrong value[/-] [+]x/sys: windows.WTD_STATEACTION_VERIFY wrong value[/+] on Jun 24, 2021
  2. added this to the Unreleased milestone on Jun 24, 2021
  3. changed the title [-]x/sys: windows.WTD_STATEACTION_VERIFY wrong value[/-] [+]x/sys: windows.WTD_STATEACTION_VERIFY has incorrect value[/+] on Jun 24, 2021
  4. toothrot commented on Jun 24, 2021

    @toothrot
    Contributor

    @bufflig - this seems possibly a typo?

  5. added
    NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.
    on Jun 24, 2021
  6. networkimprov commented on Jun 25, 2021

    @networkimprov
  7. alexbrainman commented on Jun 27, 2021

    @alexbrainman
    Member

    this seems possibly a typo?

    I agree. It is a mistake in

    https://go-review.googlesource.com/c/sys/+/285715

    @konangc87 would you like to send a fix for your issue yourself? Here is

    https://golang.org/doc/contribute

    how to contribute.

    /cc @zx2c4 because he authored the CL 285715.

    Alex

  8. zx2c4 commented on Jun 27, 2021

    @zx2c4
    Contributor

    Nice catch! Looks like a typo indeed? Or mingw headers are wrong? I'll have to check how this happened. I wonder, though, what the behavior of 0x10 is, as I've been using the bad code in question for some time.

    I can send a CL for this if you don't want to.

  9. gopherbot commented on Jun 27, 2021

    @gopherbot
    Contributor

    Change https://golang.org/cl/331010 mentions this issue: windows: fix constant value of WTD_STATEACTION_VERIFY

  10. konangc87 commented on Jun 28, 2021

    @konangc87
    Author

    this seems possibly a typo?

    I agree. It is a mistake in

    https://go-review.googlesource.com/c/sys/+/285715

    @konangc87 would you like to send a fix for your issue yourself? Here is

    https://golang.org/doc/contribute

    how to contribute.

    /cc @zx2c4 because he authored the CL 285715.

    Alex

    No problem. I'll submit the fix =)

  11. zx2c4 commented on Jun 28, 2021

    @zx2c4
    Contributor

    https://golang.org/cl/331010 covers it already.

  12. gopherbot commented on Nov 17, 2021

    @gopherbot
    Contributor

    Change https://golang.org/cl/364794 mentions this issue: windows: skip TestWinVerifyTrust

  13. added a commit that references this issue on Nov 17, 2021
  14. gopherbot commented on Nov 23, 2021

    @gopherbot
    Contributor

    Change https://golang.org/cl/366655 mentions this issue: windows: re-eenable TestWinVerifyTrust with newly signed file

  15. gopherbot commented on Nov 23, 2021

    @gopherbot
    Contributor

    Change https://golang.org/cl/366655 mentions this issue: windows: re-enable TestWinVerifyTrust with newly signed file

  16. locked and limited conversation to collaborators on Nov 23, 2022
  17. added a commit that references this issue on Jun 7, 2024
    0f9fa26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.OS-Windows

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions