From 15b3f39a4f527e2c512f9ae6ceeed9eb1fc04ef3 Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Thu, 14 Jan 2016 00:21:32 +0100 Subject: [PATCH] avoid using declaration after statements (rng_win32) --- src/prngs/rng_get_bytes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prngs/rng_get_bytes.c b/src/prngs/rng_get_bytes.c index 723afbc..457c26f 100644 --- a/src/prngs/rng_get_bytes.c +++ b/src/prngs/rng_get_bytes.c @@ -108,8 +108,8 @@ static unsigned long rng_ansic(unsigned char *buf, unsigned long len, static unsigned long rng_win32(unsigned char *buf, unsigned long len, void (*callback)(void)) { - LTC_UNUSED_PARAM(callback); HCRYPTPROV hProv = 0; + LTC_UNUSED_PARAM(callback); if (!CryptAcquireContext(&hProv, NULL, MS_DEF_PROV, PROV_RSA_FULL, (CRYPT_VERIFYCONTEXT | CRYPT_MACHINE_KEYSET)) && !CryptAcquireContext (&hProv, NULL, MS_DEF_PROV, PROV_RSA_FULL,