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
b5b097fd
Commit
b5b097fd
authored
Jan 29, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix CryptProtectData tests on older Windows versions.
parent
10b7b81e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
protectdata.c
dlls/crypt32/tests/protectdata.c
+13
-6
No files found.
dlls/crypt32/tests/protectdata.c
View file @
b5b097fd
...
...
@@ -69,11 +69,16 @@ static void test_cryptprotectdata(void)
/* without entropy */
SetLastError
(
0xDEADBEEF
);
protected
=
pCryptProtectData
(
&
plain
,
desc
,
NULL
,
NULL
,
NULL
,
0
,
&
cipher
);
ok
(
protected
,
"Encrypting without entropy.
\n
"
);
r
=
GetLastError
();
ok
(
r
==
ERROR_SUCCESS
||
r
==
ERROR_IO_PENDING
,
/* win2k */
"Expected ERROR_SUCCESS or ERROR_IO_PENDING, got %d
\n
"
,
r
);
ok
(
protected
||
broken
(
!
protected
),
/* Win9x/NT4 */
"Encrypting without entropy.
\n
"
);
if
(
protected
)
{
r
=
GetLastError
();
ok
(
r
==
ERROR_SUCCESS
||
r
==
ERROR_IO_PENDING
,
/* win2k */
"Expected ERROR_SUCCESS or ERROR_IO_PENDING, got %d
\n
"
,
r
);
}
cipher_entropy
.
pbData
=
NULL
;
cipher_entropy
.
cbData
=
0
;
...
...
@@ -81,7 +86,9 @@ static void test_cryptprotectdata(void)
/* with entropy */
SetLastError
(
0xDEADBEEF
);
protected
=
pCryptProtectData
(
&
plain
,
desc
,
&
entropy
,
NULL
,
NULL
,
0
,
&
cipher_entropy
);
ok
(
protected
,
"Encrypting with entropy.
\n
"
);
ok
(
protected
||
broken
(
!
protected
),
/* Win9x/NT4 */
"Encrypting with entropy.
\n
"
);
cipher_no_desc
.
pbData
=
NULL
;
cipher_no_desc
.
cbData
=
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