mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00:00
runtime: use windows.NewLazySystemDLL in mksyscall_windows.go
Change-Id: Ie4c4ff4167ee45ae93a8b764fb6197f402e7994d Reviewed-on: https://go-review.googlesource.com/21593 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
0d37538196
commit
d70cb46f0f
|
@ -707,9 +707,9 @@ func (src *Source) Generate(w io.Writer) error {
|
|||
}
|
||||
if *sysRepo {
|
||||
if packageName == "windows" {
|
||||
return "&LazyDLL{Name: " + arg + ", System: true}"
|
||||
return "NewLazySystemDLL(" + arg + ")"
|
||||
} else {
|
||||
return "&windows.LazyDLL{Name: " + arg + ", System: true}"
|
||||
return "windows.NewLazySystemDLL(" + arg + ")"
|
||||
}
|
||||
} else {
|
||||
return syscalldot() + "NewLazyDLL(" + arg + ")"
|
||||
|
|
Loading…
Reference in a new issue