1
0
mirror of https://github.com/golang/go synced 2024-11-19 07:44:49 -07: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:
Alex Brainman 2016-04-06 16:11:22 +10:00 committed by Brad Fitzpatrick
parent 0d37538196
commit d70cb46f0f

View File

@ -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 + ")"