summaryrefslogtreecommitdiffhomepage
path: root/tun/wintun/namespaceapi
diff options
context:
space:
mode:
Diffstat (limited to 'tun/wintun/namespaceapi')
-rw-r--r--tun/wintun/namespaceapi/namespaceapi_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/wintun/namespaceapi/namespaceapi_windows.go b/tun/wintun/namespaceapi/namespaceapi_windows.go
index ad73df2..ef75302 100644
--- a/tun/wintun/namespaceapi/namespaceapi_windows.go
+++ b/tun/wintun/namespaceapi/namespaceapi_windows.go
@@ -36,8 +36,8 @@ func (bd BoundaryDescriptor) Delete() {
}
// AddSid adds a security identifier (SID) to the specified boundary descriptor.
-func (bd BoundaryDescriptor) AddSid(requiredSid *windows.SID) error {
- return addSIDToBoundaryDescriptor((*windows.Handle)(&bd), requiredSid)
+func (bd *BoundaryDescriptor) AddSid(requiredSid *windows.SID) error {
+ return addSIDToBoundaryDescriptor((*windows.Handle)(bd), requiredSid)
}
// PrivateNamespace represents a private namespace. Duh?!