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
974c94f6
Commit
974c94f6
authored
Jan 05, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Jan 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set last error if dwFlags are non zero in CPReleaseContext.
Added corresponding test.
parent
a2463068
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
rsaenh.c
dlls/rsaenh/rsaenh.c
+5
-0
rsaenh.c
dlls/rsaenh/tests/rsaenh.c
+5
-0
No files found.
dlls/rsaenh/rsaenh.c
View file @
974c94f6
...
...
@@ -2630,6 +2630,11 @@ BOOL WINAPI RSAENH_CPReleaseContext(HCRYPTPROV hProv, DWORD dwFlags)
return
FALSE
;
}
if
(
dwFlags
)
{
SetLastError
(
NTE_BAD_FLAGS
);
return
FALSE
;
}
return
TRUE
;
}
...
...
dlls/rsaenh/tests/rsaenh.c
View file @
974c94f6
...
...
@@ -79,6 +79,11 @@ static int init_environment(void)
static
void
clean_up_environment
(
void
)
{
BOOL
result
;
result
=
CryptReleaseContext
(
hProv
,
1
);
ok
(
!
result
&&
GetLastError
()
==
NTE_BAD_FLAGS
,
"%08lx
\n
"
,
GetLastError
());
CryptAcquireContext
(
&
hProv
,
szContainer
,
szProvider
,
PROV_RSA_FULL
,
CRYPT_DELETEKEYSET
);
}
...
...
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