Commit 30be9b43 authored by Andrew Gerrand's avatar Andrew Gerrand

[release-branch.go1] syscall: use exported StringToUTF16 in windows test

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6551056
parent 2e0e7637
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment