+(global): windows travis build

This commit is contained in:
Andrey Meshkov
2020-04-14 00:04:38 +03:00
parent 8911a38f43
commit ca418de16f
2 changed files with 39 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ func SetRlimit(val uint) {
func HaveAdminRights() (bool, error) {
var token windows.Token
h, _ := windows.GetCurrentProcess()
h := windows.CurrentProcess()
err := windows.OpenProcessToken(h, windows.TOKEN_QUERY, &token)
if err != nil {
return false, err