Hans Leidekker : msi: Respect UI level in custom action type 19.

Alexandre Julliard julliard at winehq.org
Tue Sep 29 11:09:11 CDT 2009


Module: wine
Branch: master
Commit: 1b7d1d4c8701b8d77b79d0f96aeac39f3691b331
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1b7d1d4c8701b8d77b79d0f96aeac39f3691b331

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Sep 29 14:55:58 2009 +0200

msi: Respect UI level in custom action type 19.

---

 dlls/msi/custom.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c
index cbbcde5..7fcb09a 100644
--- a/dlls/msi/custom.c
+++ b/dlls/msi/custom.c
@@ -1046,10 +1046,11 @@ static UINT HANDLE_CustomType19(MSIPACKAGE *package, LPCWSTR source,
     if( row )
     {
         LPCWSTR error = MSI_RecordGetString( row, 1 );
-        MessageBoxW( NULL, error, NULL, MB_OK );
+        if ((gUILevel & INSTALLUILEVEL_MASK) != INSTALLUILEVEL_NONE)
+            MessageBoxW( NULL, error, NULL, MB_OK );
         msiobj_release( &row->hdr );
     }
-    else
+    else if ((gUILevel & INSTALLUILEVEL_MASK) != INSTALLUILEVEL_NONE)
         MessageBoxW( NULL, deformated, NULL, MB_OK );
 
     msi_free( deformated );




More information about the wine-cvs mailing list