From 533269ca9a13736eb96196b41b38e7c9b04577ae Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 26 Mar 2022 18:43:28 +0100 Subject: Windows: Fix wrong parameter to CloseHandle function in case of failure of CreateEvent (Coverity) --- src/Common/Volumes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3