mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
win32: Make some unused-variable warnings go away
This commit is contained in:
parent
3adc43b8fe
commit
5818a2c63e
15 changed files with 49 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue