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
82185186
Commit
82185186
authored
Jan 29, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix CertDuplicateCertificateContext for a passed NULL context.
parent
ff8bd24e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
cert.c
dlls/crypt32/cert.c
+4
-0
cert.c
dlls/crypt32/tests/cert.c
+11
-0
No files found.
dlls/crypt32/cert.c
View file @
82185186
...
...
@@ -115,6 +115,10 @@ PCCERT_CONTEXT WINAPI CertDuplicateCertificateContext(
PCCERT_CONTEXT
pCertContext
)
{
TRACE
(
"(%p)
\n
"
,
pCertContext
);
if
(
!
pCertContext
)
return
NULL
;
Context_AddRef
((
void
*
)
pCertContext
,
sizeof
(
CERT_CONTEXT
));
return
pCertContext
;
}
...
...
dlls/crypt32/tests/cert.c
View file @
82185186
...
...
@@ -3136,6 +3136,16 @@ static void testGetPublicKeyLength(void)
ok
(
ret
==
56
,
"Expected length 56, got %d
\n
"
,
ret
);
}
static
void
testCertDuplicateCertificateContext
(
void
)
{
PCCERT_CONTEXT
context
;
SetLastError
(
0xdeadbeef
);
context
=
CertDuplicateCertificateContext
(
NULL
);
ok
(
context
==
NULL
,
"Expected context to be NULL
\n
"
);
}
START_TEST
(
cert
)
{
init_function_pointers
();
...
...
@@ -3163,4 +3173,5 @@ START_TEST(cert)
testVerifyRevocation
();
testAcquireCertPrivateKey
();
testGetPublicKeyLength
();
testCertDuplicateCertificateContext
();
}
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