]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] syscall: use exported StringToUTF16 in windows test go1.0.3
authorAndrew Gerrand <adg@golang.org>
Fri, 21 Sep 2012 22:10:44 +0000 (17:10 -0500)
committerAndrew Gerrand <adg@golang.org>
Fri, 21 Sep 2012 22:10:44 +0000 (17:10 -0500)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6551056

src/pkg/syscall/syscall_windows_test.go

index 116134bebb7398e2a71e10c400893f77e1365f48..91add96d77b3a9d0e7ae761524514f42d9a152cd 100644 (file)
@@ -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}
 
-       pathp, _ := syscall.utf16PtrFromString(path)
+       pathp := syscall.StringToUTF16Ptr(path)
        h, err := syscall.FindFirstFile(pathp, &(x.fd))
        if err != nil {
                t.Fatalf("FindFirstFile failed: %v", err)