msi: Check for failure from do_msidbCustomActionTypeDll().

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:
Zebediah Figura 2021-01-23 17:42:41 -06:00 committed by Alexandre Julliard
parent 3d7486d66b
commit 5f21acdc9e
1 changed files with 4 additions and 2 deletions

View File

@ -771,7 +771,8 @@ static UINT HANDLE_CustomType1( MSIPACKAGE *package, const WCHAR *source, const
TRACE("Calling function %s from %s\n", debugstr_w(target), debugstr_w(binary->tmpfile));
info = do_msidbCustomActionTypeDll( package, type, binary->tmpfile, target, action );
if (!(info = do_msidbCustomActionTypeDll( package, type, binary->tmpfile, target, action )))
return ERROR_FUNCTION_FAILED;
return wait_thread_handle( info );
}
@ -876,7 +877,8 @@ static UINT HANDLE_CustomType17( MSIPACKAGE *package, const WCHAR *source, const
return ERROR_FUNCTION_FAILED;
}
info = do_msidbCustomActionTypeDll( package, type, file->TargetPath, target, action );
if (!(info = do_msidbCustomActionTypeDll( package, type, file->TargetPath, target, action )))
return ERROR_FUNCTION_FAILED;
return wait_thread_handle( info );
}