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
03e409bb
Commit
03e409bb
authored
May 17, 2012
by
Juan Lang
Committed by
Alexandre Julliard
May 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Don't shadow a variable with a variable of a different type.
parent
56823362
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
cert.c
dlls/crypt32/tests/cert.c
+18
-18
No files found.
dlls/crypt32/tests/cert.c
View file @
03e409bb
...
...
@@ -2098,7 +2098,6 @@ static void testCreateSelfSignCert(void)
if
(
context
)
{
DWORD
size
=
0
;
PCRYPT_KEY_PROV_INFO
info
;
/* The context must have a key provider info property */
ret
=
CertGetCertificateContextProperty
(
context
,
...
...
@@ -2106,24 +2105,25 @@ static void testCreateSelfSignCert(void)
ok
(
ret
&&
size
,
"Expected non-zero key provider info
\n
"
);
if
(
size
)
{
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
info
)
PCRYPT_KEY_PROV_INFO
pInfo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
pInfo
)
{
ret
=
CertGetCertificateContextProperty
(
context
,
CERT_KEY_PROV_INFO_PROP_ID
,
i
nfo
,
&
size
);
CERT_KEY_PROV_INFO_PROP_ID
,
pI
nfo
,
&
size
);
ok
(
ret
,
"CertGetCertificateContextProperty failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
{
/* Sanity-check the key provider */
ok
(
!
lstrcmpW
(
i
nfo
->
pwszContainerName
,
cspNameW
),
ok
(
!
lstrcmpW
(
pI
nfo
->
pwszContainerName
,
cspNameW
),
"Unexpected key container
\n
"
);
ok
(
!
lstrcmpW
(
i
nfo
->
pwszProvName
,
MS_DEF_PROV_W
),
ok
(
!
lstrcmpW
(
pI
nfo
->
pwszProvName
,
MS_DEF_PROV_W
),
"Unexpected provider
\n
"
);
ok
(
i
nfo
->
dwKeySpec
==
AT_SIGNATURE
,
"Expected AT_SIGNATURE, got %d
\n
"
,
i
nfo
->
dwKeySpec
);
ok
(
pI
nfo
->
dwKeySpec
==
AT_SIGNATURE
,
"Expected AT_SIGNATURE, got %d
\n
"
,
pI
nfo
->
dwKeySpec
);
}
HeapFree
(
GetProcessHeap
(),
0
,
i
nfo
);
HeapFree
(
GetProcessHeap
(),
0
,
pI
nfo
);
}
}
...
...
@@ -2152,7 +2152,6 @@ static void testCreateSelfSignCert(void)
if
(
context
)
{
DWORD
size
=
0
;
PCRYPT_KEY_PROV_INFO
info
;
/* The context must have a key provider info property */
ret
=
CertGetCertificateContextProperty
(
context
,
...
...
@@ -2160,24 +2159,25 @@ static void testCreateSelfSignCert(void)
ok
(
ret
&&
size
,
"Expected non-zero key provider info
\n
"
);
if
(
size
)
{
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
info
)
PCRYPT_KEY_PROV_INFO
pInfo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
pInfo
)
{
ret
=
CertGetCertificateContextProperty
(
context
,
CERT_KEY_PROV_INFO_PROP_ID
,
i
nfo
,
&
size
);
CERT_KEY_PROV_INFO_PROP_ID
,
pI
nfo
,
&
size
);
ok
(
ret
,
"CertGetCertificateContextProperty failed: %08x
\n
"
,
GetLastError
());
if
(
ret
)
{
/* Sanity-check the key provider */
ok
(
!
lstrcmpW
(
i
nfo
->
pwszContainerName
,
cspNameW
),
ok
(
!
lstrcmpW
(
pI
nfo
->
pwszContainerName
,
cspNameW
),
"Unexpected key container
\n
"
);
ok
(
!
lstrcmpW
(
i
nfo
->
pwszProvName
,
MS_DEF_PROV_W
),
ok
(
!
lstrcmpW
(
pI
nfo
->
pwszProvName
,
MS_DEF_PROV_W
),
"Unexpected provider
\n
"
);
ok
(
i
nfo
->
dwKeySpec
==
AT_KEYEXCHANGE
,
"Expected AT_KEYEXCHANGE, got %d
\n
"
,
i
nfo
->
dwKeySpec
);
ok
(
pI
nfo
->
dwKeySpec
==
AT_KEYEXCHANGE
,
"Expected AT_KEYEXCHANGE, got %d
\n
"
,
pI
nfo
->
dwKeySpec
);
}
HeapFree
(
GetProcessHeap
(),
0
,
i
nfo
);
HeapFree
(
GetProcessHeap
(),
0
,
pI
nfo
);
}
}
...
...
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