comdlg32: Constify some variables

Andrew Talbot andrew.talbot at talbotville.com
Tue Jun 9 16:41:27 CDT 2009


Changelog:
    comdlg32: Constify some variables.

diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index 10fccc2..b820624 100644
--- a/dlls/comdlg32/filedlg.c
+++ b/dlls/comdlg32/filedlg.c
@@ -3297,7 +3297,7 @@ void FILEDLG95_FILENAME_FillFromSelection (HWND hwnd)
  * Although shell32 is already linked the behaviour of exported StrRetToStrN
  * is dependent on whether emulated OS is unicode or not.
  */
-static HRESULT COMDLG32_StrRetToStrNW (LPWSTR dest, DWORD len, LPSTRRET src, LPITEMIDLIST pidl)
+static HRESULT COMDLG32_StrRetToStrNW (LPWSTR dest, DWORD len, LPSTRRET src, const ITEMIDLIST *pidl)
 {
 	switch (src->uType)
 	{
diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index 6726c6a..21366fd 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -2364,7 +2364,7 @@ static inline BOOL is_metric(const pagesetup_data *data)
     return pagesetup_get_flags(data) & PSD_INHUNDREDTHSOFMILLIMETERS;
 }
 
-static inline LONG tenths_mm_to_size(pagesetup_data *data, LONG size)
+static inline LONG tenths_mm_to_size(const pagesetup_data *data, LONG size)
 {
     if (is_metric(data))
         return 10 * size;
@@ -2372,7 +2372,7 @@ static inline LONG tenths_mm_to_size(pagesetup_data *data, LONG size)
         return 10 * size * 100 / 254;
 }
 
-static inline LONG thousandths_inch_to_size(pagesetup_data *data, LONG size)
+static inline LONG thousandths_inch_to_size(const pagesetup_data *data, LONG size)
 {
     if (is_metric(data))
         return size * 254 / 100;
@@ -2537,7 +2537,7 @@ typedef enum
 } devnames_name;
 
 
-static inline WORD get_devname_offset(DEVNAMES *dn, devnames_name which)
+static inline WORD get_devname_offset(const DEVNAMES *dn, devnames_name which)
 {
     switch(which)
     {
@@ -3010,7 +3010,7 @@ static void update_margin_edits(HWND hDlg, const pagesetup_data *data, WORD id)
     }
 }
 
-static void margin_edit_notification(HWND hDlg, pagesetup_data *data, WORD msg, WORD id)
+static void margin_edit_notification(HWND hDlg, const pagesetup_data *data, WORD msg, WORD id)
 {
     switch (msg)
     {



More information about the wine-patches mailing list