windows.EINVAL doesn't exist, only syscall.EINVAL.

This commit is contained in:
Sean Chittenden 2017-06-03 07:48:40 -07:00
parent 635b971c0e
commit 3e79194fe2
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 3 additions and 3 deletions

View File

@ -6,15 +6,15 @@ import (
"errors" "errors"
"fmt" "fmt"
"strings" "strings"
"syscall"
"time" "time"
"unsafe" "unsafe"
"github.com/StackExchange/wmi" "github.com/StackExchange/wmi"
"github.com/shirou/w32"
cpu "github.com/shirou/gopsutil/cpu" cpu "github.com/shirou/gopsutil/cpu"
"github.com/shirou/gopsutil/internal/common" "github.com/shirou/gopsutil/internal/common"
net "github.com/shirou/gopsutil/net" net "github.com/shirou/gopsutil/net"
"github.com/shirou/w32"
"golang.org/x/sys/windows" "golang.org/x/sys/windows"
) )
@ -430,7 +430,7 @@ func getProcessMemoryInfo(h windows.Handle, mem *PROCESS_MEMORY_COUNTERS) (err e
if e1 != 0 { if e1 != 0 {
err = error(e1) err = error(e1)
} else { } else {
err = windows.EINVAL err = syscall.EINVAL
} }
} }
return return