Commit 764974e5 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

comdlg32: Constify some variables.

parent 7db8ecb6
......@@ -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)
{
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment