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
f329de4d
Commit
f329de4d
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 CertFreeCertificateContext.
parent
1c049e50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
cert.c
dlls/crypt32/cert.c
+2
-4
cert.c
dlls/crypt32/tests/cert.c
+7
-2
No files found.
dlls/crypt32/cert.c
View file @
f329de4d
...
...
@@ -370,13 +370,11 @@ PCCERT_CONTEXT WINAPI CertDuplicateCertificateContext(PCCERT_CONTEXT pCertContex
BOOL
WINAPI
CertFreeCertificateContext
(
PCCERT_CONTEXT
pCertContext
)
{
BOOL
ret
=
TRUE
;
TRACE
(
"(%p)
\n
"
,
pCertContext
);
if
(
pCertContext
)
ret
=
Context_Release
(
&
cert_from_ptr
(
pCertContext
)
->
base
);
return
ret
;
Context_Release
(
&
cert_from_ptr
(
pCertContext
)
->
base
);
return
TRUE
;
}
DWORD
WINAPI
CertEnumCertificateContextProperties
(
PCCERT_CONTEXT
pCertContext
,
...
...
dlls/crypt32/tests/cert.c
View file @
f329de4d
...
...
@@ -725,7 +725,8 @@ static void testDupCert(void)
dupContext
=
CertDuplicateCertificateContext
(
context
);
ok
(
dupContext
==
context
,
"context != dupContext
\n
"
);
CertFreeCertificateContext
(
dupContext
);
ret
=
CertFreeCertificateContext
(
dupContext
);
ok
(
ret
,
"CertFreeCertificateContext failed
\n
"
);
store
=
CertOpenStore
(
CERT_STORE_PROV_MEMORY
,
0
,
0
,
CERT_STORE_CREATE_NEW_FLAG
,
NULL
);
ok
(
store
!=
NULL
,
"CertOpenStore failed: %d
\n
"
,
GetLastError
());
...
...
@@ -760,7 +761,8 @@ static void testDupCert(void)
ok
(
context2
->
hCertStore
==
context
->
hCertStore
,
"Unexpected hCertStore
\n
"
);
CertFreeCertificateContext
(
context2
);
CertFreeCertificateContext
(
context
);
ret
=
CertFreeCertificateContext
(
context
);
ok
(
ret
,
"CertFreeCertificateContext failed
\n
"
);
CertCloseStore
(
store
,
0
);
CertCloseStore
(
store2
,
0
);
...
...
@@ -768,6 +770,9 @@ static void testDupCert(void)
SetLastError
(
0xdeadbeef
);
context
=
CertDuplicateCertificateContext
(
NULL
);
ok
(
context
==
NULL
,
"Expected context to be NULL
\n
"
);
ret
=
CertFreeCertificateContext
(
NULL
);
ok
(
ret
,
"CertFreeCertificateContext failed
\n
"
);
}
static
void
testLinkCert
(
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