Hans Leidekker : crypt32: Initialize salt correctly.
Alexandre Julliard
julliard at winehq.org
Thu Jun 4 07:59:33 CDT 2009
Module: wine
Branch: master
Commit: 0376ec38b01a9664842debc085c02a2b34d1340e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0376ec38b01a9664842debc085c02a2b34d1340e
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Jun 4 10:11:55 2009 +0200
crypt32: Initialize salt correctly.
---
dlls/crypt32/protectdata.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/protectdata.c b/dlls/crypt32/protectdata.c
index e6ac16e..a7351bb 100644
--- a/dlls/crypt32/protectdata.c
+++ b/dlls/crypt32/protectdata.c
@@ -609,7 +609,7 @@ BOOL fill_protect_data(struct protect_data_t * pInfo, LPCWSTR szDataDescr,
if ((pInfo->salt.pbData=CryptMemAlloc(CRYPT32_PROTECTDATA_SALT_LEN)))
{
/* generate random salt */
- if (!CryptGenRandom(hProv, pInfo->salt.cbData, pInfo->salt.pbData))
+ if (!CryptGenRandom(hProv, CRYPT32_PROTECTDATA_SALT_LEN, pInfo->salt.pbData))
{
ERR("CryptGenRandom\n");
free_protect_data(pInfo);
More information about the wine-cvs
mailing list