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
e543eeb4
Commit
e543eeb4
authored
Apr 25, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Fix some leaks in tests (Valgrind).
parent
e0113072
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
security.c
dlls/advapi32/tests/security.c
+6
-2
service.c
dlls/advapi32/tests/service.c
+3
-1
No files found.
dlls/advapi32/tests/security.c
View file @
e543eeb4
...
...
@@ -3124,6 +3124,7 @@ static void test_CreateDirectoryA(void)
ok
(
ace
->
Mask
==
0x1f01ff
,
"Administators Group ACE has unexpected mask (0x%x != 0x1f01ff)
\n
"
,
ace
->
Mask
);
}
LocalFree
(
pSD
);
done:
HeapFree
(
GetProcessHeap
(),
0
,
user
);
...
...
@@ -3231,10 +3232,12 @@ static void test_GetNamedSecurityInfoA(void)
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"GetNamedSecurityInfo failed with error %d
\n
"
,
error
);
pDacl
=
NULL
;
error
=
pGetNamedSecurityInfoA
(
windows_dir
,
SE_FILE_OBJECT
,
DACL_SECURITY_INFORMATION
,
NULL
,
NULL
,
&
pDacl
,
NULL
,
NULL
);
NULL
,
NULL
,
&
pDacl
,
NULL
,
&
pSD
);
ok
(
!
error
,
"GetNamedSecurityInfo failed with error %d
\n
"
,
error
);
ok
(
pDacl
!=
NULL
,
"DACL should not be NULL
\n
"
);
LocalFree
(
pSD
);
error
=
pGetNamedSecurityInfoA
(
windows_dir
,
SE_FILE_OBJECT
,
OWNER_SECURITY_INFORMATION
,
NULL
,
NULL
,
&
pDacl
,
NULL
,
NULL
);
...
...
@@ -3950,7 +3953,7 @@ static void test_GetSecurityInfo(void)
NULL
,
NULL
,
pDacl
,
NULL
);
ok
(
ret
==
ERROR_SUCCESS
,
"SetSecurityInfo returned %d
\n
"
,
ret
);
ret
=
pGetSecurityInfo
(
obj
,
SE_FILE_OBJECT
,
DACL_SECURITY_INFORMATION
,
NULL
,
NULL
,
&
pDacl
,
NULL
,
NULL
);
NULL
,
NULL
,
&
pDacl
,
NULL
,
&
pSD
);
ok
(
ret
==
ERROR_SUCCESS
,
"GetSecurityInfo returned %d
\n
"
,
ret
);
ok
(
pDacl
&&
IsValidAcl
(
pDacl
),
"GetSecurityInfo returned invalid DACL.
\n
"
);
bret
=
pGetAclInformation
(
pDacl
,
&
acl_size
,
sizeof
(
acl_size
),
AclSizeInformation
);
...
...
@@ -3977,6 +3980,7 @@ static void test_GetSecurityInfo(void)
ok
(
ace
->
Mask
==
0x1f01ff
,
"Administators Group ACE has unexpected mask (0x%x != 0x1f01ff)
\n
"
,
ace
->
Mask
);
}
LocalFree
(
pSD
);
CloseHandle
(
obj
);
}
...
...
dlls/advapi32/tests/service.c
View file @
e543eeb4
...
...
@@ -136,6 +136,7 @@ static void test_open_svc(void)
ok
(
GetLastError
()
==
ERROR_INVALID_ADDRESS
/* W2K, XP, W2K3, Vista */
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
/* NT4 */
,
"Expected ERROR_INVALID_ADDRESS or ERROR_INVALID_PARAMETER, got %d
\n
"
,
GetLastError
());
CloseServiceHandle
(
scm_handle
);
/* Nonexistent service */
scm_handle
=
OpenSCManagerA
(
NULL
,
NULL
,
SC_MANAGER_CONNECT
);
...
...
@@ -1840,8 +1841,9 @@ static void test_sequence(void)
if
(
!
is_nt4
)
{
retval
=
pGetSecurityInfo
(
svc_handle
,
SE_SERVICE
,
DACL_SECURITY_INFORMATION
,
NULL
,
NULL
,
&
dacl
,
NULL
,
NULL
);
NULL
,
&
dacl
,
NULL
,
&
pSD
);
ok
(
retval
==
ERROR_SUCCESS
,
"Expected GetSecurityInfo to succeed: result %d
\n
"
,
retval
);
LocalFree
(
pSD
);
SetLastError
(
0xdeadbeef
);
retval
=
pGetSecurityInfo
(
svc_handle
,
SE_SERVICE
,
DACL_SECURITY_INFORMATION
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
...
...
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