]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] syscall: fix windows build go1.0.2
authorAndrew Gerrand <adg@golang.org>
Thu, 14 Jun 2012 02:50:42 +0000 (12:50 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 14 Jun 2012 02:50:42 +0000 (12:50 +1000)
««« CL 6303061 / 17432a753e50
syscall: fix windows build

TBR=bradfitz
CC=golang-dev
https://golang.org/cl/6303061
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/6295080

src/pkg/syscall/syscall_windows_test.go

index 495eb46a78c99250bf91510985f006dda79f192d..79cd8f86916c4ff0bcf60b78608350f36f357b00 100644 (file)
@@ -27,7 +27,7 @@ func TestWin32finddata(t *testing.T) {
        f.Close()
 
        type X struct {
-               fd  syscall.Win32finddata1
+               fd  syscall.Win32finddata
                got byte
                pad [10]byte // to protect ourselves
 
@@ -35,7 +35,7 @@ func TestWin32finddata(t *testing.T) {
        var want byte = 2 // it is unlikely to have this character in the filename
        x := X{got: want}
 
-       h, err := syscall.FindFirstFile1(syscall.StringToUTF16Ptr(path), &(x.fd))
+       h, err := syscall.FindFirstFile(syscall.StringToUTF16Ptr(path), &(x.fd))
        if err != nil {
                t.Fatalf("FindFirstFile failed: %v", err)
        }