Zebediah Figura : msi: Close all handles opened by a custom action thread.

Alexandre Julliard julliard at winehq.org
Mon Nov 25 09:12:25 CST 2019


Module: wine
Branch: stable
Commit: a2ea837849c2920b7cd5a8e2ffc31ff1c1393fcb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a2ea837849c2920b7cd5a8e2ffc31ff1c1393fcb

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sun Jun 30 17:14:18 2019 -0500

msi: Close all handles opened by a custom action thread.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47418
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit e4e7e956bd93f0ffd597a041a58c82c02c811ac0)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/msi/custom.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c
index 3cb0f3170a..650dea9f7a 100644
--- a/dlls/msi/custom.c
+++ b/dlls/msi/custom.c
@@ -580,7 +580,8 @@ UINT CDECL __wine_msi_call_dll_function(const GUID *guid)
 
     midl_user_free(dll);
     midl_user_free(proc);
-    MsiCloseHandle(hPackage);
+
+    MsiCloseAllHandles();
 
     return r;
 }




More information about the wine-cvs mailing list