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