mirror of
https://github.com/golang/go
synced 2024-11-02 11:50:30 +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
1 changed files with 2 additions and 2 deletions
|
@ -707,9 +707,9 @@ func (src *Source) Generate(w io.Writer) error {
|
||||||
}
|
}
|
||||||
if *sysRepo {
|
if *sysRepo {
|
||||||
if packageName == "windows" {
|
if packageName == "windows" {
|
||||||
return "&LazyDLL{Name: " + arg + ", System: true}"
|
return "NewLazySystemDLL(" + arg + ")"
|
||||||
} else {
|
} else {
|
||||||
return "&windows.LazyDLL{Name: " + arg + ", System: true}"
|
return "windows.NewLazySystemDLL(" + arg + ")"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return syscalldot() + "NewLazyDLL(" + arg + ")"
|
return syscalldot() + "NewLazyDLL(" + arg + ")"
|
||||||
|
|
Loading…
Reference in a new issue