mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-28 04:46:44 -04:00
go.sys/windows: import syscall
Simple oversight. LGTM=alex.brainman R=alex.brainman CC=golang-codereviews, rsc https://golang.org/cl/121660043
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"syscall"
|
||||
"testing"
|
||||
|
||||
"code.google.com/p/go.sys/windows"
|
||||
@@ -65,7 +66,7 @@ func ExampleLoadLibrary() {
|
||||
if err != nil {
|
||||
abort("GetProcAddress", err)
|
||||
}
|
||||
r, _, _ := windows.Syscall(uintptr(proc), 0, 0, 0, 0)
|
||||
r, _, _ := syscall.Syscall(uintptr(proc), 0, 0, 0, 0)
|
||||
major := byte(r)
|
||||
minor := uint8(r >> 8)
|
||||
build := uint16(r >> 16)
|
||||
|
||||
Reference in New Issue
Block a user