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
35131414
Commit
35131414
authored
Oct 18, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Always return TRUE from CertFreeCRLContext.
parent
f329de4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
crl.c
dlls/crypt32/crl.c
+2
-4
crl.c
dlls/crypt32/tests/crl.c
+10
-2
No files found.
dlls/crypt32/crl.c
View file @
35131414
...
...
@@ -363,13 +363,11 @@ PCCRL_CONTEXT WINAPI CertDuplicateCRLContext(PCCRL_CONTEXT pCrlContext)
BOOL
WINAPI
CertFreeCRLContext
(
PCCRL_CONTEXT
pCrlContext
)
{
BOOL
ret
=
TRUE
;
TRACE
(
"(%p)
\n
"
,
pCrlContext
);
if
(
pCrlContext
)
ret
=
Context_Release
(
&
crl_from_ptr
(
pCrlContext
)
->
base
);
return
ret
;
Context_Release
(
&
crl_from_ptr
(
pCrlContext
)
->
base
);
return
TRUE
;
}
DWORD
WINAPI
CertEnumCRLContextProperties
(
PCCRL_CONTEXT
pCRLContext
,
...
...
dlls/crypt32/tests/crl.c
View file @
35131414
...
...
@@ -120,6 +120,7 @@ static void testCreateCRL(void)
static
void
testDupCRL
(
void
)
{
PCCRL_CONTEXT
context
,
dupContext
;
BOOL
res
;
context
=
CertDuplicateCRLContext
(
NULL
);
ok
(
context
==
NULL
,
"expected NULL
\n
"
);
...
...
@@ -128,8 +129,15 @@ static void testDupCRL(void)
dupContext
=
CertDuplicateCRLContext
(
context
);
ok
(
dupContext
!=
NULL
,
"expected a context
\n
"
);
ok
(
dupContext
==
context
,
"expected identical context addresses
\n
"
);
CertFreeCRLContext
(
dupContext
);
CertFreeCRLContext
(
context
);
res
=
CertFreeCRLContext
(
dupContext
);
ok
(
res
,
"CertFreeCRLContext failed
\n
"
);
res
=
CertFreeCRLContext
(
context
);
ok
(
res
,
"CertFreeCRLContext failed
\n
"
);
res
=
CertFreeCRLContext
(
NULL
);
ok
(
res
,
"CertFreeCRLContext failed
\n
"
);
}
static
void
testAddCRL
(
void
)
...
...
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