Commits

Anonymous committed 2d8bc3c

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

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6551056

Comments (0)

Files changed (1)

src/pkg/syscall/syscall_windows_test.go

 	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)