msi: Update the UI in the AllocateRegistrySpace action.
authorHans Leidekker <hans@codeweavers.com>
Fri, 5 Mar 2010 11:23:22 +0000 (12:23 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 5 Mar 2010 12:13:37 +0000 (13:13 +0100)
dlls/msi/action.c

index 9b44de0e08d19bb654926bdadc3f90f8832de7ed..a39ddadac030bfd0771a2ce686a820484a31d968 100644 (file)
@@ -7035,8 +7035,16 @@ static UINT ACTION_AllocateRegistrySpace( MSIPACKAGE *package )
 {
     static const WCHAR szAvailableFreeReg[] =
         {'A','V','A','I','L','A','B','L','E','F','R','E','E','R','E','G',0};
+    MSIRECORD *uirow;
+    int space = msi_get_property_int( package, szAvailableFreeReg, 0 );
+
+    TRACE("%p %d kilobytes\n", package, space);
+
+    uirow = MSI_CreateRecord( 1 );
+    MSI_RecordSetInteger( uirow, 1, space );
+    ui_actiondata( package, szAllocateRegistrySpace, uirow );
+    msiobj_release( &uirow->hdr );
 
-    TRACE("%p %d kilobytes\n", package, msi_get_property_int( package, szAvailableFreeReg, 0 ));
     return ERROR_SUCCESS;
 }