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
5cd09929
Commit
5cd09929
authored
Nov 08, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Nov 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win98 fails another way when user isn't logged in.
parent
695e3928
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
crypt.c
dlls/advapi32/tests/crypt.c
+13
-2
No files found.
dlls/advapi32/tests/crypt.c
View file @
5cd09929
...
...
@@ -154,6 +154,7 @@ static void test_acquire_context(void)
{
BOOL
result
;
HCRYPTPROV
hProv
;
DWORD
GLE
;
/* Provoke all kinds of error conditions (which are easy to provoke).
* The order of the error tests seems to match Windows XP's rsaenh.dll CSP,
...
...
@@ -185,7 +186,12 @@ static void test_acquire_context(void)
hProv
=
0
;
SetLastError
(
0xdeadbeef
);
result
=
pCryptAcquireContextA
(
&
hProv
,
szKeySet
,
szRsaBaseProv
,
PROV_RSA_FULL
,
0
);
ok
(
result
&&
(
GetLastError
()
==
ERROR_ENVVAR_NOT_FOUND
||
GetLastError
()
==
ERROR_SUCCESS
||
GetLastError
()
==
ERROR_RING2_STACK_IN_USE
||
GetLastError
()
==
NTE_FAIL
),
"%d/%ld
\n
"
,
result
,
GetLastError
());
GLE
=
GetLastError
();
ok
(
result
&&
(
GLE
==
ERROR_ENVVAR_NOT_FOUND
||
GLE
==
ERROR_SUCCESS
||
GLE
==
ERROR_RING2_STACK_IN_USE
||
GLE
==
NTE_FAIL
||
GLE
==
ERROR_NOT_LOGGED_ON
),
"%d/%ld
\n
"
,
result
,
GLE
);
if
(
hProv
)
pCryptReleaseContext
(
hProv
,
0
);
...
...
@@ -194,7 +200,12 @@ static void test_acquire_context(void)
hProv
=
0
;
SetLastError
(
0xdeadbeef
);
result
=
pCryptAcquireContextA
(
&
hProv
,
szKeySet
,
""
,
PROV_RSA_FULL
,
0
);
ok
(
result
&&
(
GetLastError
()
==
ERROR_ENVVAR_NOT_FOUND
||
GetLastError
()
==
ERROR_SUCCESS
||
GetLastError
()
==
ERROR_RING2_STACK_IN_USE
||
GetLastError
()
==
NTE_FAIL
),
"%d/%ld
\n
"
,
result
,
GetLastError
());
GLE
=
GetLastError
();
ok
(
result
&&
(
GLE
==
ERROR_ENVVAR_NOT_FOUND
||
GLE
==
ERROR_SUCCESS
||
GLE
==
ERROR_RING2_STACK_IN_USE
||
GLE
==
NTE_FAIL
||
GLE
==
ERROR_NOT_LOGGED_ON
),
"%d/%ld
\n
"
,
result
,
GetLastError
());
if
(
hProv
)
pCryptReleaseContext
(
hProv
,
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