Skip to content

Commit 40cf750

Browse files
committed
windows: correctly generate GetAce syscall
GetAce expects a failretval==0, and we shouldn't call GetLastError on error. Fixes #191 Updates #191
1 parent 7bb0bf7 commit 40cf750

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

windows/security_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ type OBJECTS_AND_NAME struct {
11791179
//sys makeSelfRelativeSD(absoluteSD *SECURITY_DESCRIPTOR, selfRelativeSD *SECURITY_DESCRIPTOR, selfRelativeSDSize *uint32) (err error) = advapi32.MakeSelfRelativeSD
11801180

11811181
//sys setEntriesInAcl(countExplicitEntries uint32, explicitEntries *EXPLICIT_ACCESS, oldACL *ACL, newACL **ACL) (ret error) = advapi32.SetEntriesInAclW
1182-
//sys GetAce(acl *ACL, aceIndex uint32, pAce **ACCESS_ALLOWED_ACE) (ret error) = advapi32.GetAce
1182+
//sys GetAce(acl *ACL, aceIndex uint32, pAce **ACCESS_ALLOWED_ACE) (err error) = advapi32.GetAce
11831183

11841184
// Control returns the security descriptor control bits.
11851185
func (sd *SECURITY_DESCRIPTOR) Control() (control SECURITY_DESCRIPTOR_CONTROL, revision uint32, err error) {

windows/zsyscall_windows.go

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)