diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-01-02 17:35:29 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-01-02 17:35:29 +0000 |
commit | 7954be7fa5ea70de36aacebb8bcca2a70af709f4 (patch) | |
tree | b839bbb75392ad4c301a0393b3ca49fe155c5740 /compat/getentropy_win.c | |
parent | 7f563e614fb9a8ce7c8904a3ad346b7e38238339 (diff) |
Diffstat (limited to 'compat/getentropy_win.c')
-rw-r--r-- | compat/getentropy_win.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/getentropy_win.c b/compat/getentropy_win.c index 9dc55891e393b..71fb955e7f905 100644 --- a/compat/getentropy_win.c +++ b/compat/getentropy_win.c @@ -41,9 +41,9 @@ getentropy(void *buf, size_t len) } if (CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, - CRYPT_VERIFYCONTEXT) != 0) + CRYPT_VERIFYCONTEXT) == 0) goto fail; - if (CryptGenRandom(provider, len, buf) != 0) { + if (CryptGenRandom(provider, len, buf) == 0) { CryptReleaseContext(provider, 0); goto fail; } |