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 <mstefani@winehq.org>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-08-16 22:31:22 +02:00 committed by Alexandre Julliard
parent d72d37008a
commit c2add8a030

View file

@ -678,11 +678,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();
}