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
b5e5be13
Commit
b5e5be13
authored
Dec 02, 2016
by
Bruno Jesus
Committed by
Alexandre Julliard
Dec 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcrypt/tests: Workaround RegGetValueW not being present in XP.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c64cdc1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
bcrypt.c
dlls/bcrypt/tests/bcrypt.c
+6
-4
No files found.
dlls/bcrypt/tests/bcrypt.c
View file @
b5e5be13
...
...
@@ -75,18 +75,19 @@ static void test_BCryptGetFipsAlgorithmMode(void)
'L'
,
's'
,
'a'
,
0
};
static
const
WCHAR
policyValueXPW
[]
=
{
'F'
,
'I'
,
'P'
,
'S'
,
'A'
,
'l'
,
'g'
,
'o'
,
'r'
,
'i'
,
't'
,
'h'
,
'm'
,
'P'
,
'o'
,
'l'
,
'i'
,
'c'
,
'y'
,
0
};
HKEY
hkey
=
NULL
;
BOOLEAN
expected
;
BOOLEAN
enabled
;
DWORD
value
,
count
[
2
]
=
{
sizeof
(
value
),
sizeof
(
value
)};
NTSTATUS
ret
;
if
(
!
RegGetValueW
(
HKEY_LOCAL_MACHINE
,
policyKeyVistaW
,
policyValueVistaW
,
R
RF_RT_REG_DWORD
,
NULL
,
&
value
,
&
count
[
0
])
)
if
(
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
policyKeyVistaW
,
&
hkey
)
==
ERROR_SUCCESS
&&
R
egQueryValueExW
(
hkey
,
policyValueVistaW
,
NULL
,
NULL
,
(
void
*
)
&
value
,
&
count
[
0
])
==
ERROR_SUCCESS
)
{
expected
=
!!
value
;
}
else
if
(
!
RegGetValueW
(
HKEY_LOCAL_MACHINE
,
policyKeyXPW
,
policyValueXPW
,
RRF_RT_REG_DWORD
,
NULL
,
&
value
,
&
count
[
1
])
)
else
if
(
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
policyKeyXPW
,
&
hkey
)
==
ERROR_SUCCESS
&&
RegQueryValueExW
(
hkey
,
policyValueXPW
,
NULL
,
NULL
,
(
void
*
)
&
value
,
&
count
[
0
])
==
ERROR_SUCCESS
)
{
expected
=
!!
value
;
}
...
...
@@ -96,6 +97,7 @@ static void test_BCryptGetFipsAlgorithmMode(void)
todo_wine
ok
(
0
,
"Neither XP or Vista key is present
\n
"
);
}
RegCloseKey
(
hkey
);
ret
=
BCryptGetFipsAlgorithmMode
(
&
enabled
);
ok
(
ret
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got 0x%x
\n
"
,
ret
);
...
...
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