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
2c28b62a
Commit
2c28b62a
authored
Jun 12, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust/tests: Simplify the code and improve consistency by removing unneeded function typedefs.
parent
9012d4e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
register.c
dlls/wintrust/tests/register.c
+4
-9
No files found.
dlls/wintrust/tests/register.c
View file @
2c28b62a
...
...
@@ -286,9 +286,6 @@ static void test_LoadFunctionPointers(void)
ok
(
ret
,
"WintrustLoadFunctionPointers failed: %d
\n
"
,
GetLastError
());
}
typedef
void
(
WINAPI
*
WintrustGetRegPolicyFlagsFunc
)(
DWORD
*
);
typedef
BOOL
(
WINAPI
*
WintrustSetRegPolicyFlagsFunc
)(
DWORD
);
static
void
test_RegPolicyFlags
(
void
)
{
/* Default state value 0x00023c00, which is
...
...
@@ -302,17 +299,15 @@ static void test_RegPolicyFlags(void)
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Wintrust
\\
"
"Trust Providers
\\
Software Publishing"
;
static
const
CHAR
State
[]
=
"State"
;
WintrustGetRegPolicyFlagsFunc
pGetFlags
;
WintrustSetRegPolicyFlagsFunc
pSetFlags
;
void
(
WINAPI
*
pGetFlags
)(
DWORD
*
)
;
BOOL
(
WINAPI
*
pSetFlags
)(
DWORD
)
;
HKEY
key
;
LONG
r
;
DWORD
flags1
,
flags2
,
flags3
,
size
;
BOOL
ret
;
pGetFlags
=
(
WintrustGetRegPolicyFlagsFunc
)
GetProcAddress
(
hWintrust
,
"WintrustGetRegPolicyFlags"
);
pSetFlags
=
(
WintrustSetRegPolicyFlagsFunc
)
GetProcAddress
(
hWintrust
,
"WintrustSetRegPolicyFlags"
);
pGetFlags
=
(
void
*
)
GetProcAddress
(
hWintrust
,
"WintrustGetRegPolicyFlags"
);
pSetFlags
=
(
void
*
)
GetProcAddress
(
hWintrust
,
"WintrustSetRegPolicyFlags"
);
if
(
!
pGetFlags
||
!
pSetFlags
)
skip
(
"Policy flags functions not present
\n
"
);
...
...
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