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
99b9e1ae
Commit
99b9e1ae
authored
May 14, 2010
by
Juan Lang
Committed by
Alexandre Julliard
May 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Prohibit adding links to collection stores.
parent
76fc5c8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
cert.c
dlls/crypt32/cert.c
+9
-0
store.c
dlls/crypt32/tests/store.c
+0
-1
No files found.
dlls/crypt32/cert.c
View file @
99b9e1ae
...
...
@@ -113,8 +113,17 @@ BOOL WINAPI CertAddCertificateLinkToStore(HCERTSTORE hCertStore,
PCCERT_CONTEXT
pCertContext
,
DWORD
dwAddDisposition
,
PCCERT_CONTEXT
*
ppCertContext
)
{
PWINECRYPT_CERTSTORE
store
=
(
PWINECRYPT_CERTSTORE
)
hCertStore
;
FIXME
(
"(%p, %p, %08x, %p)
\n
"
,
hCertStore
,
pCertContext
,
dwAddDisposition
,
ppCertContext
);
if
(
store
->
dwMagic
!=
WINE_CRYPTCERTSTORE_MAGIC
)
return
FALSE
;
if
(
store
->
type
==
StoreTypeCollection
)
{
SetLastError
(
E_INVALIDARG
);
return
FALSE
;
}
return
FALSE
;
}
...
...
dlls/crypt32/tests/store.c
View file @
99b9e1ae
...
...
@@ -2354,7 +2354,6 @@ static void testAddCertificateLink(void)
SetLastError
(
0xdeadbeef
);
ret
=
CertAddCertificateLinkToStore
(
store1
,
source
,
CERT_STORE_ADD_ALWAYS
,
&
linked
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
E_INVALIDARG
,
"expected E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
CertFreeCertificateContext
(
source
);
...
...
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