Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f6f5c966
Commit
f6f5c966
authored
Jan 10, 2018
by
Matteo Bruni
Committed by
Alexandre Julliard
Jan 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Fully initialize ACLs (Valgrind).
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f6039736
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
security.c
dlls/advapi32/tests/security.c
+4
-1
No files found.
dlls/advapi32/tests/security.c
View file @
f6f5c966
...
...
@@ -3559,7 +3559,7 @@ static void test_CreateDirectoryA(void)
sa
.
bInheritHandle
=
TRUE
;
InitializeSecurityDescriptor
(
pSD
,
SECURITY_DESCRIPTOR_REVISION
);
pCreateWellKnownSid
(
WinBuiltinAdministratorsSid
,
NULL
,
admin_sid
,
&
sid_size
);
pDacl
=
HeapAlloc
(
GetProcessHeap
(),
0
,
100
);
pDacl
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
100
);
bret
=
InitializeAcl
(
pDacl
,
100
,
ACL_REVISION
);
ok
(
bret
,
"Failed to initialize ACL.
\n
"
);
bret
=
pAddAccessAllowedAceEx
(
pDacl
,
ACL_REVISION
,
OBJECT_INHERIT_ACE
|
CONTAINER_INHERIT_ACE
,
...
...
@@ -6306,6 +6306,7 @@ static void test_AddMandatoryAce(void)
HeapFree
(
GetProcessHeap
(),
0
,
sd2
);
CloseHandle
(
handle
);
memset
(
buffer_acl
,
0
,
sizeof
(
buffer_acl
));
ret
=
InitializeAcl
(
acl
,
256
,
ACL_REVISION
);
ok
(
ret
,
"InitializeAcl failed with %u
\n
"
,
GetLastError
());
...
...
@@ -6792,6 +6793,7 @@ static void test_maximum_allowed(void)
ret
=
InitializeSecurityDescriptor
(
sd
,
SECURITY_DESCRIPTOR_REVISION
);
ok
(
ret
,
"InitializeSecurityDescriptor failed with %u
\n
"
,
GetLastError
());
memset
(
buffer_acl
,
0
,
sizeof
(
buffer_acl
));
ret
=
InitializeAcl
(
acl
,
256
,
ACL_REVISION
);
ok
(
ret
,
"InitializeAcl failed with %u
\n
"
,
GetLastError
());
ret
=
SetSecurityDescriptorDacl
(
sd
,
TRUE
,
acl
,
FALSE
);
...
...
@@ -6921,6 +6923,7 @@ static void test_token_security_descriptor(void)
ret
=
InitializeSecurityDescriptor
(
sd
,
SECURITY_DESCRIPTOR_REVISION
);
ok
(
ret
,
"InitializeSecurityDescriptor failed with error %u
\n
"
,
GetLastError
());
memset
(
buffer_acl
,
0
,
sizeof
(
buffer_acl
));
ret
=
InitializeAcl
(
acl
,
256
,
ACL_REVISION
);
ok
(
ret
,
"InitializeAcl failed with error %u
\n
"
,
GetLastError
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment