diff options
-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) |