Commit d70cb46f authored by Alex Brainman's avatar Alex Brainman Committed by Brad Fitzpatrick

runtime: use windows.NewLazySystemDLL in mksyscall_windows.go

Change-Id: Ie4c4ff4167ee45ae93a8b764fb6197f402e7994d
Reviewed-on: https://go-review.googlesource.com/21593Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 0d375381
......@@ -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 + ")"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment