Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
764974e5
Commit
764974e5
authored
Jun 09, 2009
by
Andrew Talbot
Committed by
Alexandre Julliard
Jun 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Constify some variables.
parent
7db8ecb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
filedlg.c
dlls/comdlg32/filedlg.c
+1
-1
printdlg.c
dlls/comdlg32/printdlg.c
+4
-4
No files found.
dlls/comdlg32/filedlg.c
View file @
764974e5
...
...
@@ -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
)
{
...
...
dlls/comdlg32/printdlg.c
View file @
764974e5
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment