VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2022-03-26 18:43:28 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2022-03-26 21:14:49 +0100
commit533269ca9a13736eb96196b41b38e7c9b04577ae (patch)
tree9585d701759ad439a3cadf9eb9798efdf51e62ab /src
parent69a9c6b3943db402a11bf2609c4778ab08628a76 (diff)
downloadVeraCrypt-533269ca9a13736eb96196b41b38e7c9b04577ae.tar.gz
VeraCrypt-533269ca9a13736eb96196b41b38e7c9b04577ae.zip
Windows: Fix wrong parameter to CloseHandle function in case of failure of CreateEvent (Coverity)
Diffstat (limited to 'src')
-rw-r--r--src/Common/Volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Volumes.c b/src/Common/Volumes.c
index 902c1699..9590715e 100644
--- a/src/Common/Volumes.c
+++ b/src/Common/Volumes.c
@@ -285,7 +285,7 @@ int ReadVolumeHeader (BOOL bBoot, char *encryptedHeader, Password *password, int
*noOutstandingWorkItemEvent = CreateEvent (NULL, FALSE, TRUE, NULL);
if (!*noOutstandingWorkItemEvent)
{
- CloseHandle (keyDerivationCompletedEvent);
+ CloseHandle (*keyDerivationCompletedEvent);
TCfree (keyDerivationWorkItems);
TCfree(keyDerivationCompletedEvent);
TCfree(noOutstandingWorkItemEvent);