msi: Constify some variables (2 of 2)

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Jun 2 17:00:18 CDT 2007


Changelog:
    msi: Constify some variables.

diff -urN a/dlls/msi/events.c b/dlls/msi/events.c
--- a/dlls/msi/events.c	2007-05-07 15:49:27.000000000 +0100
+++ b/dlls/msi/events.c	2007-06-02 21:17:18.000000000 +0100
@@ -320,7 +320,7 @@
     }
 }
 
-VOID ControlEvent_CleanupDialogSubscriptions(MSIPACKAGE *package, LPWSTR dialog)
+VOID ControlEvent_CleanupDialogSubscriptions(MSIPACKAGE *package, LPCWSTR dialog)
 {
     struct list *i, *t;
     struct subscriber *sub;
diff -urN a/dlls/msi/files.c b/dlls/msi/files.c
--- a/dlls/msi/files.c	2007-05-30 17:21:38.000000000 +0100
+++ b/dlls/msi/files.c	2007-06-02 21:17:47.000000000 +0100
@@ -68,7 +68,7 @@
     WCHAR source[MAX_PATH];
 };
 
-static BOOL source_matches_volume(struct media_info *mi, LPWSTR source_root)
+static BOOL source_matches_volume(const struct media_info *mi, LPCWSTR source_root)
 {
     WCHAR volume_name[MAX_PATH + 1];
 
@@ -82,7 +82,7 @@
     return !lstrcmpW(mi->volume_label, volume_name);
 }
 
-static UINT msi_change_media( MSIPACKAGE *package, struct media_info *mi )
+static UINT msi_change_media( MSIPACKAGE *package, const struct media_info *mi )
 {
     LPSTR msg;
     LPWSTR error, error_dialog;
@@ -243,7 +243,7 @@
     return SetFilePointer(handle, dist, NULL, seektype);
 }
 
-static void msi_file_update_ui( MSIPACKAGE *package, MSIFILE *f, const WCHAR *action )
+static void msi_file_update_ui( MSIPACKAGE *package, const MSIFILE *f, const WCHAR *action )
 {
     MSIRECORD *uirow;
     LPWSTR uipath, p;
@@ -487,7 +487,7 @@
     msi_free( mi );
 }
 
-static UINT download_remote_cabinet(MSIPACKAGE *package, struct media_info *mi)
+static UINT download_remote_cabinet(const MSIPACKAGE *package, struct media_info *mi)
 {
     WCHAR temppath[MAX_PATH];
     LPWSTR src, ptr;
@@ -944,7 +944,7 @@
 /* compares the version of a file read from the filesystem and
  * the version specified in the File table
  */
-static int msi_compare_file_version( MSIFILE *file )
+static int msi_compare_file_version( const MSIFILE *file )
 {
     WCHAR version[MAX_PATH];
     DWORD size;
diff -urN a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h
--- a/dlls/msi/msipriv.h	2007-06-02 13:16:06.000000000 +0100
+++ b/dlls/msi/msipriv.h	2007-06-02 21:17:33.000000000 +0100
@@ -785,7 +785,7 @@
 /* control event stuff */
 extern VOID ControlEvent_FireSubscribedEvent(MSIPACKAGE *package, LPCWSTR event,
                                       MSIRECORD *data);
-extern VOID ControlEvent_CleanupDialogSubscriptions(MSIPACKAGE *package, LPWSTR dialog);
+extern VOID ControlEvent_CleanupDialogSubscriptions(MSIPACKAGE *package, LPCWSTR dialog);
 extern VOID ControlEvent_CleanupSubscriptions(MSIPACKAGE *package);
 extern VOID ControlEvent_SubscribeToEvent(MSIPACKAGE *package, msi_dialog *dialog,
                                       LPCWSTR event, LPCWSTR control, LPCWSTR attribute);



More information about the wine-patches mailing list