mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
crypt32: Remove dead assignments in cert.c (Cppcheck).
This commit is contained in:
parent
47554b8c63
commit
9df1f2fa87
@ -984,7 +984,7 @@ static BOOL container_matches_cert(PCCERT_CONTEXT pCert, LPCSTR container,
|
||||
{
|
||||
CRYPT_KEY_PROV_INFO copy;
|
||||
WCHAR containerW[MAX_PATH];
|
||||
BOOL matches = FALSE;
|
||||
BOOL matches;
|
||||
|
||||
MultiByteToWideChar(CP_ACP, 0, container, -1,
|
||||
containerW, sizeof(containerW) / sizeof(containerW[0]));
|
||||
@ -1142,7 +1142,7 @@ static BOOL cert_prov_info_matches_cert(PCCERT_CONTEXT pCert)
|
||||
BOOL WINAPI CryptFindCertificateKeyProvInfo(PCCERT_CONTEXT pCert,
|
||||
DWORD dwFlags, void *pvReserved)
|
||||
{
|
||||
BOOL matches = FALSE;
|
||||
BOOL matches;
|
||||
|
||||
TRACE("(%p, %08x, %p)\n", pCert, dwFlags, pvReserved);
|
||||
|
||||
@ -2887,7 +2887,7 @@ static void CRYPT_SetBitInField(struct BitField *field, DWORD bit)
|
||||
|
||||
static BOOL CRYPT_IsBitInFieldSet(const struct BitField *field, DWORD bit)
|
||||
{
|
||||
BOOL set = FALSE;
|
||||
BOOL set;
|
||||
DWORD indexIndex = bit / BITS_PER_DWORD;
|
||||
|
||||
assert(field->cIndexes);
|
||||
@ -3099,7 +3099,6 @@ static void CertContext_SetKeyProvInfo(PCCERT_CONTEXT context,
|
||||
CryptMemFree(szProvider);
|
||||
}
|
||||
}
|
||||
size = sizeof(info.dwKeySpec);
|
||||
/* in case no CRYPT_KEY_PROV_INFO given,
|
||||
* we always use AT_SIGNATURE key spec
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user