diff options
author | Andrew Gerrand <adg@golang.org> | 2012-09-21 17:10:44 -0500 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2012-09-21 17:10:44 -0500 |
commit | 30be9b4313622c2077539e68826194cb1028c691 (patch) | |
tree | 6c7dcb931b76b56ecc1a29da55f3780c2ab088b3 | |
parent | 2e0e7637c5f7bd54a74da5d92527471d7941c5e4 (diff) | |
download | go1.0.3.tar.gz go1.0.3.zip |
[release-branch.go1] syscall: use exported StringToUTF16 in windows testgo1.0.3
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6551056
-rw-r--r-- | src/pkg/syscall/syscall_windows_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/syscall/syscall_windows_test.go b/src/pkg/syscall/syscall_windows_test.go index 116134bebb..91add96d77 100644 --- a/src/pkg/syscall/syscall_windows_test.go +++ b/src/pkg/syscall/syscall_windows_test.go @@ -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) |