Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ccc4c35a
Commit
ccc4c35a
authored
Aug 17, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Don't shadow some local variables.
parent
b410bc3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
security.c
dlls/advapi32/tests/security.c
+5
-7
No files found.
dlls/advapi32/tests/security.c
View file @
ccc4c35a
...
...
@@ -65,7 +65,7 @@ typedef struct _OBJECT_BASIC_INFORMATION {
LARGE_INTEGER
CreateTime
;
}
OBJECT_BASIC_INFORMATION
,
*
POBJECT_BASIC_INFORMATION
;
#define expect_eq(expr, value, type, format) { type ret
= expr; ok((value) == ret, #expr " expected " format " got " format "\n", (value), (ret
)); }
#define expect_eq(expr, value, type, format) { type ret
_ = expr; ok((value) == ret_, #expr " expected " format " got " format "\n", (value), (ret_
)); }
static
BOOL
(
WINAPI
*
pAddAccessAllowedAceEx
)(
PACL
,
DWORD
,
DWORD
,
DWORD
,
PSID
);
static
BOOL
(
WINAPI
*
pAddAccessDeniedAceEx
)(
PACL
,
DWORD
,
DWORD
,
DWORD
,
PSID
);
...
...
@@ -254,8 +254,6 @@ static void test_sid(void)
for
(
i
=
0
;
i
<
sizeof
(
refs
)
/
sizeof
(
refs
[
0
]);
i
++
)
{
PISID
pisid
;
r
=
AllocateAndInitializeSid
(
&
refs
[
i
].
auth
,
1
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
&
psid
);
ok
(
r
,
"failed to allocate sid
\n
"
);
...
...
@@ -2431,15 +2429,15 @@ static void test_granted_access(HANDLE handle, ACCESS_MASK access,
#define CHECK_SET_SECURITY(o,i,e) \
do{ \
BOOL res; \
BOOL res
_
; \
DWORD err; \
SetLastError( 0xdeadbeef ); \
res = SetKernelObjectSecurity( o, i, SecurityDescriptor ); \
res
_
= SetKernelObjectSecurity( o, i, SecurityDescriptor ); \
err = GetLastError(); \
if (e == ERROR_SUCCESS) \
ok(res, "SetKernelObjectSecurity failed with %d\n", err); \
ok(res
_
, "SetKernelObjectSecurity failed with %d\n", err); \
else \
ok(!res && err == e, "SetKernelObjectSecurity should have failed " \
ok(!res
_
&& err == e, "SetKernelObjectSecurity should have failed " \
"with %s, instead of %d\n", #e, err); \
}while(0)
...
...
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