diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2022-03-26 18:43:28 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2022-03-26 21:14:49 +0100 |
commit | 533269ca9a13736eb96196b41b38e7c9b04577ae (patch) | |
tree | 9585d701759ad439a3cadf9eb9798efdf51e62ab /src | |
parent | 69a9c6b3943db402a11bf2609c4778ab08628a76 (diff) | |
download | VeraCrypt-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.c | 2 |
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); |