mirror of
https://github.com/golang/go
synced 2024-11-25 19:07:57 -07:00
syscall: fix windows build
TBR=bradfitz CC=golang-dev https://golang.org/cl/6303061
This commit is contained in:
parent
7ad37673e1
commit
56f5e6d845
@ -27,7 +27,7 @@ func TestWin32finddata(t *testing.T) {
|
|||||||
f.Close()
|
f.Close()
|
||||||
|
|
||||||
type X struct {
|
type X struct {
|
||||||
fd syscall.Win32finddata1
|
fd syscall.Win32finddata
|
||||||
got byte
|
got byte
|
||||||
pad [10]byte // to protect ourselves
|
pad [10]byte // to protect ourselves
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ func TestWin32finddata(t *testing.T) {
|
|||||||
var want byte = 2 // it is unlikely to have this character in the filename
|
var want byte = 2 // it is unlikely to have this character in the filename
|
||||||
x := X{got: want}
|
x := X{got: want}
|
||||||
|
|
||||||
h, err := syscall.FindFirstFile1(syscall.StringToUTF16Ptr(path), &(x.fd))
|
h, err := syscall.FindFirstFile(syscall.StringToUTF16Ptr(path), &(x.fd))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("FindFirstFile failed: %v", err)
|
t.Fatalf("FindFirstFile failed: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user