1
0
mirror of https://github.com/golang/go synced 2024-11-14 05:50:27 -07:00

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

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6551056
This commit is contained in:
Andrew Gerrand 2012-09-21 17:10:44 -05:00
parent 2e0e7637c5
commit 30be9b4313

View 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)