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
b1d4d2b2
Commit
b1d4d2b2
authored
Feb 16, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Make sure to use return values (LLVM/Clang).
parent
b7c18d10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
store.c
dlls/crypt32/tests/store.c
+4
-0
No files found.
dlls/crypt32/tests/store.c
View file @
b1d4d2b2
...
@@ -200,6 +200,7 @@ static void testMemStore(void)
...
@@ -200,6 +200,7 @@ static void testMemStore(void)
if
(
buf
)
if
(
buf
)
{
{
ret
=
CertSerializeCertificateStoreElement
(
context
,
0
,
buf
,
&
size
);
ret
=
CertSerializeCertificateStoreElement
(
context
,
0
,
buf
,
&
size
);
ok
(
ret
,
"CertSerializeCertificateStoreElement failed: %08x
\n
"
,
GetLastError
());
ok
(
size
==
sizeof
(
serializedCert
),
"Wrong size %d
\n
"
,
size
);
ok
(
size
==
sizeof
(
serializedCert
),
"Wrong size %d
\n
"
,
size
);
ok
(
!
memcmp
(
serializedCert
,
buf
,
size
),
ok
(
!
memcmp
(
serializedCert
,
buf
,
size
),
"Unexpected serialized cert
\n
"
);
"Unexpected serialized cert
\n
"
);
...
@@ -1075,6 +1076,7 @@ static void testSystemRegStore(void)
...
@@ -1075,6 +1076,7 @@ static void testSystemRegStore(void)
/* Now check whether deleting is allowed */
/* Now check whether deleting is allowed */
store
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_REGISTRY
,
0
,
0
,
store
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_REGISTRY
,
0
,
0
,
CERT_SYSTEM_STORE_CURRENT_USER
|
CERT_STORE_DELETE_FLAG
,
BogusW
);
CERT_SYSTEM_STORE_CURRENT_USER
|
CERT_STORE_DELETE_FLAG
,
BogusW
);
ok
(
!
store
,
"CertOpenStore failed: %08x
\n
"
,
GetLastError
());
RegDeleteKeyW
(
HKEY_CURRENT_USER
,
BogusPathW
);
RegDeleteKeyW
(
HKEY_CURRENT_USER
,
BogusPathW
);
store
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_REGISTRY
,
0
,
0
,
0
,
NULL
);
store
=
CertOpenStore
(
CERT_STORE_PROV_SYSTEM_REGISTRY
,
0
,
0
,
0
,
NULL
);
...
@@ -2323,6 +2325,7 @@ static void testAddCertificateLink(void)
...
@@ -2323,6 +2325,7 @@ static void testAddCertificateLink(void)
/* The serialized linked certificate is identical to the serialized
/* The serialized linked certificate is identical to the serialized
* original certificate.
* original certificate.
*/
*/
ok
(
ret
,
"CertSerializeCertificateStoreElement failed: %08x
\n
"
,
GetLastError
());
ok
(
size
==
sizeof
(
serializedCert
),
"Wrong size %d
\n
"
,
size
);
ok
(
size
==
sizeof
(
serializedCert
),
"Wrong size %d
\n
"
,
size
);
ok
(
!
memcmp
(
serializedCert
,
buf
,
size
),
ok
(
!
memcmp
(
serializedCert
,
buf
,
size
),
"Unexpected serialized cert
\n
"
);
"Unexpected serialized cert
\n
"
);
...
@@ -2345,6 +2348,7 @@ static void testAddCertificateLink(void)
...
@@ -2345,6 +2348,7 @@ static void testAddCertificateLink(void)
{
{
ret
=
CertGetCertificateContextProperty
(
linked
,
ret
=
CertGetCertificateContextProperty
(
linked
,
CERT_FRIENDLY_NAME_PROP_ID
,
buf
,
&
size
);
CERT_FRIENDLY_NAME_PROP_ID
,
buf
,
&
size
);
ok
(
ret
,
"CertGetCertificateContextProperty failed: %08x
\n
"
,
GetLastError
());
ok
(
!
lstrcmpW
((
LPCWSTR
)
buf
,
WineTestW
),
ok
(
!
lstrcmpW
((
LPCWSTR
)
buf
,
WineTestW
),
"unexpected friendly name
\n
"
);
"unexpected friendly name
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
...
...
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