Hans Leidekker : msi: Update the UI when registering or unregistering type libraries.

Alexandre Julliard julliard at winehq.org
Tue Feb 16 11:44:40 CST 2010


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Feb 16 11:44:34 2010 +0100

msi: Update the UI when registering or unregistering type libraries.

---

 dlls/msi/action.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 4ddfc82..3d6b5c1 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -2882,6 +2882,8 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
     if (!file)
         return ERROR_SUCCESS;
 
+    ui_actiondata( package, szRegisterTypeLibraries, row );
+
     module = LoadLibraryExW( file->TargetPath, NULL, LOAD_LIBRARY_AS_DATAFILE );
     if (module)
     {
@@ -2911,11 +2913,7 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
                 ERR("Failed to register type library %s\n",
                         debugstr_w(tl_struct.path));
             else
-            {
-                ui_actiondata(package,szRegisterTypeLibraries,row);
-
                 TRACE("Registered %s\n", debugstr_w(tl_struct.path));
-            }
 
             ITypeLib_Release(tl_struct.ptLib);
             msi_free(tl_struct.path);
@@ -2990,6 +2988,8 @@ static UINT ITERATE_UnregisterTypeLibraries( MSIRECORD *row, LPVOID param )
     }
     comp->Action = INSTALLSTATE_ABSENT;
 
+    ui_actiondata( package, szUnregisterTypeLibraries, row );
+
     guid = MSI_RecordGetString( row, 1 );
     CLSIDFromString( (LPWSTR)guid, &libid );
     version = MSI_RecordGetInteger( row, 4 );




More information about the wine-cvs mailing list