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
0bb92b37
Commit
0bb92b37
authored
Jun 06, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust/tests: Use A instead of W-calls.
parent
70015ab5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
register.c
dlls/wintrust/tests/register.c
+7
-13
No files found.
dlls/wintrust/tests/register.c
View file @
0bb92b37
...
...
@@ -298,16 +298,10 @@ static void test_RegPolicyFlags(void)
* WTPF_OFFLINEOK_COM |
* WTPF_OFFLINEOK_IND
*/
static
const
WCHAR
Software_Publishing
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
'W'
,
'i'
,
'n'
,
't'
,
'r'
,
'u'
,
's'
,
't'
,
'\\'
,
'T'
,
'r'
,
'u'
,
's'
,
't'
,
' '
,
'P'
,
'r'
,
'o'
,
'v'
,
'i'
,
'd'
,
'e'
,
'r'
,
's'
,
'\\'
,
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
' '
,
'P'
,
'u'
,
'b'
,
'l'
,
'i'
,
's'
,
'h'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
State
[]
=
{
'S'
,
't'
,
'a'
,
't'
,
'e'
,
0
};
static
const
CHAR
Software_Publishing
[]
=
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Wintrust
\\
"
"Trust Providers
\\
Software Publishing"
;
static
const
CHAR
State
[]
=
"State"
;
WintrustGetRegPolicyFlagsFunc
pGetFlags
;
WintrustSetRegPolicyFlagsFunc
pSetFlags
;
HKEY
key
;
...
...
@@ -322,12 +316,12 @@ static void test_RegPolicyFlags(void)
if
(
!
pGetFlags
||
!
pSetFlags
)
skip
(
"Policy flags functions not present
\n
"
);
r
=
RegOpenKeyEx
W
(
HKEY_CURRENT_USER
,
Software_Publishing
,
0
,
KEY_ALL_ACCESS
,
r
=
RegOpenKeyEx
A
(
HKEY_CURRENT_USER
,
Software_Publishing
,
0
,
KEY_ALL_ACCESS
,
&
key
);
ok
(
!
r
,
"RegOpenKeyEx failed: %d
\n
"
,
r
);
size
=
sizeof
(
flags1
);
r
=
RegQueryValueEx
W
(
key
,
State
,
NULL
,
NULL
,
(
LPBYTE
)
&
flags1
,
&
size
);
r
=
RegQueryValueEx
A
(
key
,
State
,
NULL
,
NULL
,
(
LPBYTE
)
&
flags1
,
&
size
);
ok
(
!
r
,
"RegQueryValueEx failed: %d
\n
"
,
r
);
pGetFlags
(
&
flags2
);
...
...
@@ -337,7 +331,7 @@ static void test_RegPolicyFlags(void)
ret
=
pSetFlags
(
flags3
);
ok
(
ret
,
"pSetFlags failed: %d
\n
"
,
GetLastError
());
size
=
sizeof
(
flags1
);
r
=
RegQueryValueEx
W
(
key
,
State
,
NULL
,
NULL
,
(
LPBYTE
)
&
flags1
,
&
size
);
r
=
RegQueryValueEx
A
(
key
,
State
,
NULL
,
NULL
,
(
LPBYTE
)
&
flags1
,
&
size
);
ok
(
flags1
==
flags3
,
"Didn't get expected flags
\n
"
);
pSetFlags
(
flags2
);
...
...
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