aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/service_manager.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-02 16:39:01 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-02 16:39:01 +0200
commit4b079148d7c8a282dad38b05bbfaf4414ee08431 (patch)
tree56d77fbb34880495f6571d443513669a2e07628d /service/service_manager.go
parentservice: set security attributes on new process (diff)
downloadwireguard-windows-4b079148d7c8a282dad38b05bbfaf4414ee08431.tar.xz
wireguard-windows-4b079148d7c8a282dad38b05bbfaf4414ee08431.zip
service: wtf->wts
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/service_manager.go')
-rw-r--r--service/service_manager.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/service_manager.go b/service/service_manager.go
index 9596671b..25729aed 100644
--- a/service/service_manager.go
+++ b/service/service_manager.go
@@ -52,7 +52,7 @@ type wtsSessionInfo struct {
type wellKnownSidType uint32
-//sys wtfQueryUserToken(session uint32, token *windows.Token) (err error) = wtsapi32.WTSQueryUserToken
+//sys wtsQueryUserToken(session uint32, token *windows.Token) (err error) = wtsapi32.WTSQueryUserToken
//sys wtsEnumerateSessions(handle windows.Handle, reserved uint32, version uint32, sessions **wtsSessionInfo, count *uint32) (err error) = wtsapi32.WTSEnumerateSessionsW
//sys wtsFreeMemory(ptr uintptr) = wtsapi32.WTSFreeMemory
@@ -177,7 +177,7 @@ func (service *managerService) Execute(args []string, r <-chan svc.ChangeRequest
return
}
var userToken windows.Token
- err := wtfQueryUserToken(session, &userToken)
+ err := wtsQueryUserToken(session, &userToken)
if err != nil {
return
}