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
d0db296d
Commit
d0db296d
authored
Nov 29, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Make some data const.
parent
e5b4b47c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
+11
-11
cdlg32.c
dlls/comdlg32/cdlg32.c
+1
-1
filedlg.c
dlls/comdlg32/filedlg.c
+2
-2
fontdlg.c
dlls/comdlg32/fontdlg.c
+1
-1
printdlg.c
dlls/comdlg32/printdlg.c
+5
-5
printdlg.h
dlls/comdlg32/printdlg.h
+1
-1
printdlg16.c
dlls/comdlg32/printdlg16.c
+1
-1
No files found.
dlls/comdlg32/cdlg32.c
View file @
d0db296d
...
...
@@ -63,7 +63,7 @@ BOOL (WINAPI *COMDLG32_SHGetFolderPathW)(HWND,int,HANDLE,DWORD,LPWSTR);
* FALSE if sibling could not be loaded or instantiated twice, TRUE
* otherwise.
*/
static
const
char
*
GPA_string
=
"Failed to get entry point %s for hinst = 0x%08x
\n
"
;
static
const
char
GPA_string
[]
=
"Failed to get entry point %s for hinst = %p
\n
"
;
#define GPA(dest, hinst, name) \
if(!(dest = (void*)GetProcAddress(hinst,name)))\
{ \
...
...
dlls/comdlg32/filedlg.c
View file @
d0db296d
...
...
@@ -175,8 +175,8 @@ typedef struct tagFD32_PRIVATE
#define CBSetExtendedUI(hwnd,flag) \
SendMessageA(hwnd,CB_SETEXTENDEDUI,(WPARAM)(flag),0)
const
char
*
FileOpenDlgInfosStr
=
"FileOpenDlgInfos"
;
/* windows property description string */
const
char
*
LookInInfosStr
=
"LookInInfos"
;
/* LOOKIN combo box property */
const
char
FileOpenDlgInfosStr
[]
=
"FileOpenDlgInfos"
;
/* windows property description string */
static
const
char
LookInInfosStr
[]
=
"LookInInfos"
;
/* LOOKIN combo box property */
/***********************************************************************
* Prototypes
...
...
dlls/comdlg32/fontdlg.c
View file @
d0db296d
...
...
@@ -88,7 +88,7 @@ static const WCHAR stIso88594[]={'A','a','B','b',0}; /* ISO-8859-4 */
static
const
WCHAR
stIso885910
[]
=
{
'A'
,
'a'
,
'B'
,
'b'
,
0
};
/* ISO-8859-10 */
static
const
WCHAR
stCeltic
[]
=
{
'A'
,
'a'
,
'B'
,
'b'
,
0
};
/* Celtic */
static
const
WCHAR
*
sample_lang_text
[]
=
{
static
const
WCHAR
*
const
sample_lang_text
[]
=
{
stWestern
,
stSymbol
,
stShiftJis
,
stHangul
,
stGB2312
,
stBIG5
,
stGreek
,
stTurkish
,
stHebrew
,
stArabic
,
stBaltic
,
stVietname
,
stCyrillic
,
stEastEur
,
stThai
,
...
...
dlls/comdlg32/printdlg.c
View file @
d0db296d
...
...
@@ -51,7 +51,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(commdlg);
#define MAX_COPIES 9999
/* Debugging info */
static
struct
pd_flags
psd_flags
[]
=
{
static
const
struct
pd_flags
psd_flags
[]
=
{
{
PSD_MINMARGINS
,
"PSD_MINMARGINS"
},
{
PSD_MARGINS
,
"PSD_MARGINS"
},
{
PSD_INTHOUSANDTHSOFINCHES
,
"PSD_INTHOUSANDTHSOFINCHES"
},
...
...
@@ -1999,7 +1999,7 @@ BOOL WINAPI PrintDlgA(LPPRINTDLGA lppd)
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
struct
pd_flags
*
pflag
=
pd_flags
;
const
struct
pd_flags
*
pflag
=
pd_flags
;
for
(
;
pflag
->
name
;
pflag
++
)
{
if
(
lppd
->
Flags
&
pflag
->
flag
)
strcat
(
flagstr
,
pflag
->
name
);
...
...
@@ -2141,7 +2141,7 @@ BOOL WINAPI PrintDlgW(
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
struct
pd_flags
*
pflag
=
pd_flags
;
const
struct
pd_flags
*
pflag
=
pd_flags
;
for
(
;
pflag
->
name
;
pflag
++
)
{
if
(
lppd
->
Flags
&
pflag
->
flag
)
strcat
(
flagstr
,
pflag
->
name
);
...
...
@@ -3335,7 +3335,7 @@ BOOL WINAPI PageSetupDlgA(LPPAGESETUPDLGA setupdlg) {
/* TRACE */
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
struct
pd_flags
*
pflag
=
psd_flags
;
const
struct
pd_flags
*
pflag
=
psd_flags
;
for
(
;
pflag
->
name
;
pflag
++
)
{
if
(
setupdlg
->
Flags
&
pflag
->
flag
)
{
strcat
(
flagstr
,
pflag
->
name
);
...
...
@@ -3437,7 +3437,7 @@ BOOL WINAPI PageSetupDlgW(LPPAGESETUPDLGW setupdlg) {
FIXME
(
"Unicode implementation is not done yet
\n
"
);
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
struct
pd_flags
*
pflag
=
psd_flags
;
const
struct
pd_flags
*
pflag
=
psd_flags
;
for
(
;
pflag
->
name
;
pflag
++
)
{
if
(
setupdlg
->
Flags
&
pflag
->
flag
)
{
strcat
(
flagstr
,
pflag
->
name
);
...
...
dlls/comdlg32/printdlg.h
View file @
d0db296d
...
...
@@ -59,7 +59,7 @@ typedef struct
}
PRINT_PTRW
;
/* Debugging info */
static
struct
pd_flags
{
static
const
struct
pd_flags
{
DWORD
flag
;
LPCSTR
name
;
}
pd_flags
[]
=
{
...
...
dlls/comdlg32/printdlg16.c
View file @
d0db296d
...
...
@@ -349,7 +349,7 @@ BOOL16 WINAPI PrintDlg16(
if
(
TRACE_ON
(
commdlg
))
{
char
flagstr
[
1000
]
=
""
;
struct
pd_flags
*
pflag
=
pd_flags
;
const
struct
pd_flags
*
pflag
=
pd_flags
;
for
(
;
pflag
->
name
;
pflag
++
)
{
if
(
lppd
->
Flags
&
pflag
->
flag
)
strcat
(
flagstr
,
pflag
->
name
);
...
...
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