https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d79a5e413ed4908749f0c4c8662e82c1702cd5b8

commit d79a5e413ed4908749f0c4c8662e82c1702cd5b8
Author:     winesync <[email protected]>
AuthorDate: Sat Mar 12 23:54:33 2022 +0100
Commit:     Mark Jansen <[email protected]>
CommitDate: Sun Mar 20 19:27:59 2022 +0100

    [WINESYNC] msi: Unlock msi_custom_action_c on the error paths.
    
    Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45483
    Signed-off-by: Michael Stefaniuc <[email protected]>
    Signed-off-by: Zebediah Figura <[email protected]>
    Signed-off-by: Hans Leidekker <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>
    
    wine commit id c2add8a030b63d79f94d516d2dbee9fb09b9c09c by Michael 
Stefaniuc <[email protected]>
---
 dll/win32/msi/custom.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dll/win32/msi/custom.c b/dll/win32/msi/custom.c
index 9d44008be73..bdc9b39cd5c 100644
--- a/dll/win32/msi/custom.c
+++ b/dll/win32/msi/custom.c
@@ -693,11 +693,13 @@ static DWORD WINAPI custom_client_thread(void *arg)
         size != sizeof(info->guid))
     {
         ERR("Failed to write to custom action client pipe: %u\n", 
GetLastError());
+        LeaveCriticalSection(&msi_custom_action_cs);
         return GetLastError();
     }
     if (!ReadFile(pipe, &thread64, sizeof(thread64), &size, NULL) || size != 
sizeof(thread64))
     {
         ERR("Failed to read from custom action client pipe: %u\n", 
GetLastError());
+        LeaveCriticalSection(&msi_custom_action_cs);
         return GetLastError();
     }
 

Reply via email to