https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fc7157139f03954363f5c…
commit fc7157139f03954363f5c292b97dceda4a38e4eb
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Mar 13 21:40:18 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:28:37 2022 +0100
[WINESYNC] msi: Check for failure from do_msidbCustomActionTypeDll().
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 5f21acdc9e9840b50a6991b8e8dc52758adb192d by Zebediah Figura
<z.figura12(a)gmail.com>
---
dll/win32/msi/custom.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dll/win32/msi/custom.c b/dll/win32/msi/custom.c
index 47d04a87ea0..0ccb96d7d1b 100644
--- a/dll/win32/msi/custom.c
+++ b/dll/win32/msi/custom.c
@@ -792,7 +792,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 );
}
@@ -897,7 +898,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 );
}