mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Windows: various fixes following Coverity analysis.
This commit is contained in:
@@ -163,11 +163,12 @@ int TCFormatVolume (volatile FORMAT_VOL_PARAMETERS *volParams)
|
||||
FormatSectorSize,
|
||||
FALSE);
|
||||
|
||||
if (nStatus != 0)
|
||||
/* cryptoInfo sanity check to make Coverity happy eventhough it can't be NULL if nStatus = 0 */
|
||||
if ((nStatus != 0) || !cryptoInfo)
|
||||
{
|
||||
burn (header, sizeof (header));
|
||||
VirtualUnlock (header, sizeof (header));
|
||||
return nStatus;
|
||||
return nStatus? nStatus : ERR_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
begin_format:
|
||||
|
||||
Reference in New Issue
Block a user