Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1794)

Side by Side Diff: src/pkg/syscall/zsyscall_windows_386.go

Issue 6261053: code review 6261053: syscall: correct Win32finddata definition (Closed)
Patch Set: diff -r a2cb3130bd86 https://go.googlecode.com/hg/ Created 11 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/syscall/syscall_windows_test.go ('k') | src/pkg/syscall/zsyscall_windows_amd64.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // mksyscall_windows.pl -l32 syscall_windows.go security_windows.go syscall_wind ows_386.go 1 // mksyscall_windows.pl -l32 syscall_windows.go security_windows.go syscall_wind ows_386.go
2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT 2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3 3
4 package syscall 4 package syscall
5 5
6 import "unsafe" 6 import "unsafe"
7 7
8 var ( 8 var (
9 modkernel32 = NewLazyDLL("kernel32.dll") 9 modkernel32 = NewLazyDLL("kernel32.dll")
10 modadvapi32 = NewLazyDLL("advapi32.dll") 10 modadvapi32 = NewLazyDLL("advapi32.dll")
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 if handle == InvalidHandle { 303 if handle == InvalidHandle {
304 if e1 != 0 { 304 if e1 != 0 {
305 err = error(e1) 305 err = error(e1)
306 } else { 306 } else {
307 err = EINVAL 307 err = EINVAL
308 } 308 }
309 } 309 }
310 return 310 return
311 } 311 }
312 312
313 func FindFirstFile(name *uint16, data *Win32finddata) (handle Handle, err error) { 313 func FindFirstFile1(name *uint16, data *Win32finddata1) (handle Handle, err erro r) {
314 r0, _, e1 := Syscall(procFindFirstFileW.Addr(), 2, uintptr(unsafe.Pointe r(name)), uintptr(unsafe.Pointer(data)), 0) 314 r0, _, e1 := Syscall(procFindFirstFileW.Addr(), 2, uintptr(unsafe.Pointe r(name)), uintptr(unsafe.Pointer(data)), 0)
315 handle = Handle(r0) 315 handle = Handle(r0)
316 if handle == InvalidHandle { 316 if handle == InvalidHandle {
317 if e1 != 0 { 317 if e1 != 0 {
318 err = error(e1) 318 err = error(e1)
319 } else { 319 } else {
320 err = EINVAL 320 err = EINVAL
321 } 321 }
322 } 322 }
323 return 323 return
324 } 324 }
325 325
326 func FindNextFile(handle Handle, data *Win32finddata) (err error) { 326 func FindNextFile1(handle Handle, data *Win32finddata1) (err error) {
327 r1, _, e1 := Syscall(procFindNextFileW.Addr(), 2, uintptr(handle), uintp tr(unsafe.Pointer(data)), 0) 327 r1, _, e1 := Syscall(procFindNextFileW.Addr(), 2, uintptr(handle), uintp tr(unsafe.Pointer(data)), 0)
328 if int(r1) == 0 { 328 if int(r1) == 0 {
329 if e1 != 0 { 329 if e1 != 0 {
330 err = error(e1) 330 err = error(e1)
331 } else { 331 } else {
332 err = EINVAL 332 err = EINVAL
333 } 333 }
334 } 334 }
335 return 335 return
336 } 336 }
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 r1, _, e1 := Syscall(procGetUserProfileDirectoryW.Addr(), 3, uintptr(t), uintptr(unsafe.Pointer(dir)), uintptr(unsafe.Pointer(dirLen))) 1613 r1, _, e1 := Syscall(procGetUserProfileDirectoryW.Addr(), 3, uintptr(t), uintptr(unsafe.Pointer(dir)), uintptr(unsafe.Pointer(dirLen)))
1614 if int(r1) == 0 { 1614 if int(r1) == 0 {
1615 if e1 != 0 { 1615 if e1 != 0 {
1616 err = error(e1) 1616 err = error(e1)
1617 } else { 1617 } else {
1618 err = EINVAL 1618 err = EINVAL
1619 } 1619 }
1620 } 1620 }
1621 return 1621 return
1622 } 1622 }
OLDNEW
« no previous file with comments | « src/pkg/syscall/syscall_windows_test.go ('k') | src/pkg/syscall/zsyscall_windows_amd64.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b