Skip to content

Commit

Permalink
Merge pull request #658 from kongfei605/655_fix
Browse files Browse the repository at this point in the history
fix #655
  • Loading branch information
kongfei605 authored Sep 15, 2023
2 parents e495580 + f9a7553 commit 2f03a1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inputs/procstat/win_service_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package procstat

import (
"log"
"unsafe"

"golang.org/x/sys/windows"
Expand Down Expand Up @@ -36,7 +37,7 @@ func queryPidWithWinServiceName(winServiceName string) (uint32, error) {
log.Printf("E! Close srv error: %s", err)
}
}(srv)

var p *windows.SERVICE_STATUS_PROCESS
var bytesNeeded uint32
var buf []byte
Expand Down

0 comments on commit 2f03a1e

Please sign in to comment.