From 5818a2c63e9a52a545b9c8eb6fdbfa24cfee822f Mon Sep 17 00:00:00 2001 From: Maarten Bosmans Date: Thu, 23 Jun 2011 22:21:03 +0200 Subject: win32: Make some unused-variable warnings go away --- src/pulsecore/random.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pulsecore/random.c') diff --git a/src/pulsecore/random.c b/src/pulsecore/random.c index 1bd69c2d..b2ec19f0 100644 --- a/src/pulsecore/random.c +++ b/src/pulsecore/random.c @@ -49,11 +49,11 @@ static int random_proper(void *ret_data, size_t length) { #ifdef OS_IS_WIN32 int ret = -1; + HCRYPTPROV hCryptProv = 0; + pa_assert(ret_data); pa_assert(length > 0); - HCRYPTPROV hCryptProv = NULL; - if (CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) { if(CryptGenRandom(hCryptProv, length, ret_data)) ret = 0; -- cgit