Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
348261e6
Commit
348261e6
authored
Feb 14, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Feb 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix a test failure on Vista, and make Wine match the newer (and saner) behavior.
parent
79c39e37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
store.c
dlls/crypt32/store.c
+1
-6
cert.c
dlls/crypt32/tests/cert.c
+8
-4
No files found.
dlls/crypt32/store.c
View file @
348261e6
...
...
@@ -782,12 +782,6 @@ BOOL WINAPI CertAddCertificateContextToStore(HCERTSTORE hCertStore,
TRACE
(
"(%p, %p, %08x, %p)
\n
"
,
hCertStore
,
pCertContext
,
dwAddDisposition
,
ppStoreContext
);
/* Weird case to pass a test */
if
(
dwAddDisposition
==
0
)
{
SetLastError
(
STATUS_ACCESS_VIOLATION
);
return
FALSE
;
}
if
(
dwAddDisposition
!=
CERT_STORE_ADD_ALWAYS
)
{
BYTE
hashToAdd
[
20
];
...
...
@@ -855,6 +849,7 @@ BOOL WINAPI CertAddCertificateContextToStore(HCERTSTORE hCertStore,
break
;
default:
FIXME
(
"Unimplemented add disposition %d
\n
"
,
dwAddDisposition
);
SetLastError
(
E_INVALIDARG
);
ret
=
FALSE
;
}
...
...
dlls/crypt32/tests/cert.c
View file @
348261e6
...
...
@@ -160,12 +160,16 @@ static void testAddCert(void)
*/
ret
=
CertAddEncodedCertificateToStore
(
0
,
X509_ASN_ENCODING
,
bigCert
,
sizeof
(
bigCert
),
0
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
STATUS_ACCESS_VIOLATION
,
"Expected STATUS_ACCESS_VIOLATION, got %08x
\n
"
,
GetLastError
());
ok
(
!
ret
&&
(
GetLastError
()
==
STATUS_ACCESS_VIOLATION
||
GetLastError
()
==
E_INVALIDARG
),
"Expected STATUS_ACCESS_VIOLATION or E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
ret
=
CertAddEncodedCertificateToStore
(
store
,
X509_ASN_ENCODING
,
bigCert
,
sizeof
(
bigCert
),
0
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
STATUS_ACCESS_VIOLATION
,
"Expected STATUS_ACCESS_VIOLATION, got %08x
\n
"
,
GetLastError
());
ok
(
!
ret
&&
(
GetLastError
()
==
STATUS_ACCESS_VIOLATION
||
GetLastError
()
==
E_INVALIDARG
),
"Expected STATUS_ACCESS_VIOLATION or E_INVALIDARG, got %08x
\n
"
,
GetLastError
());
/* Weird--can add a cert to the NULL store (does this have special
* meaning?)
...
...
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