crypt32: Change salt allocation to handle errors (Coverity 133).

This commit is contained in:
Marcus Meissner 2009-05-08 00:00:01 +02:00 committed by Alexandre Julliard
parent 256d3a2ee1
commit 9990bde993
1 changed files with 2 additions and 4 deletions

View File

@ -616,11 +616,9 @@ BOOL fill_protect_data(struct protect_data_t * pInfo, LPCWSTR szDataDescr,
return FALSE;
}
pInfo->salt.cbData=CRYPT32_PROTECTDATA_SALT_LEN;
/* debug: show our salt */
TRACE_DATA_BLOB(&pInfo->salt);
}
/* debug: show our salt */
TRACE_DATA_BLOB(&pInfo->salt);
pInfo->cipher.cbData=0;
pInfo->cipher.pbData=NULL;