comdlg32: Make some data const.

This commit is contained in:
Dmitry Timoshkov 2006-11-29 18:04:52 +08:00 committed by Alexandre Julliard
parent e5b4b47c16
commit d0db296db0
6 changed files with 11 additions and 11 deletions

View File

@ -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)))\
{ \

View File

@ -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

View File

@ -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,

View File

@ -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);

View File

@ -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[] = {

View File

@ -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);