diff --git a/process/process_windows.go b/process/process_windows.go index 1f1305b..4406a67 100644 --- a/process/process_windows.go +++ b/process/process_windows.go @@ -425,7 +425,7 @@ func getMemoryInfo(pid int32) (PROCESS_MEMORY_COUNTERS, error) { } func getProcessMemoryInfo(h windows.Handle, mem *PROCESS_MEMORY_COUNTERS) (err error) { - r1, _, e1 := windows.Syscall(procGetProcessMemoryInfo.Addr(), 3, uintptr(h), uintptr(unsafe.Pointer(mem)), uintptr(unsafe.Sizeof(*mem))) + r1, _, e1 := syscall.Syscall(procGetProcessMemoryInfo.Addr(), 3, uintptr(h), uintptr(unsafe.Pointer(mem)), uintptr(unsafe.Sizeof(*mem))) if r1 == 0 { if e1 != 0 { err = error(e1)