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
6ef7dafa
Commit
6ef7dafa
authored
Oct 16, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Oct 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Fix test failures on Windows Vista/2008.
parent
e1e17b89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
cryptnet.c
dlls/cryptnet/tests/cryptnet.c
+8
-4
No files found.
dlls/cryptnet/tests/cryptnet.c
View file @
6ef7dafa
...
...
@@ -285,6 +285,12 @@ static void test_retrieveObjectByUrl(void)
pBlobArray
=
(
CRYPT_BLOB_ARRAY
*
)
0xdeadbeef
;
ret
=
CryptRetrieveObjectByUrlA
(
url
,
NULL
,
0
,
0
,
(
void
**
)
&
pBlobArray
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
!
ret
&&
GetLastError
()
==
ERROR_NOT_SUPPORTED
)
{
/* File URL support was apparently removed in Vista/Windows 2008 */
skip
(
"File URLs not supported
\n
"
);
return
;
}
ok
(
ret
,
"CryptRetrieveObjectByUrlA failed: %d
\n
"
,
GetLastError
());
ok
(
pBlobArray
&&
pBlobArray
!=
(
CRYPT_BLOB_ARRAY
*
)
0xdeadbeef
,
"Expected a valid pointer
\n
"
);
...
...
@@ -306,10 +312,8 @@ static void test_retrieveObjectByUrl(void)
SetLastError
(
0xdeadbeef
);
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CRL
,
0
,
0
,
(
void
**
)
&
crl
,
NULL
,
NULL
,
NULL
,
NULL
);
/* vista: ERROR_NOT_SUPPORTED, w2k3,XP, newer w2k: CRYPT_E_NO_MATCH,
95: OSS_DATA_ERROR */
ok
(
!
ret
&&
(
GetLastError
()
==
ERROR_NOT_SUPPORTED
||
GetLastError
()
==
CRYPT_E_NO_MATCH
||
/* w2k3,XP, newer w2k: CRYPT_E_NO_MATCH, 95: OSS_DATA_ERROR */
ok
(
!
ret
&&
(
GetLastError
()
==
CRYPT_E_NO_MATCH
||
GetLastError
()
==
CRYPT_E_ASN1_BADTAG
||
GetLastError
()
==
OSS_DATA_ERROR
),
"got 0x%x/%u (expected CRYPT_E_NO_MATCH or CRYPT_E_ASN1_BADTAG or "
...
...
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