Dmitry Timoshkov : msvcrt: Make some data const.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Dec 14 14:23:53 CST 2006
Module: wine
Branch: master
Commit: ffa84441c8ce7a172bc23b8b787e10b8350f1032
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ffa84441c8ce7a172bc23b8b787e10b8350f1032
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Thu Dec 14 22:47:24 2006 +0800
msvcrt: Make some data const.
---
dlls/msvcrt/exit.c | 2 +-
dlls/msvcrt/locale.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/msvcrt/exit.c b/dlls/msvcrt/exit.c
index 34e97e4..fecbf10 100644
--- a/dlls/msvcrt/exit.c
+++ b/dlls/msvcrt/exit.c
@@ -33,7 +33,7 @@ static MSVCRT__onexit_t *MSVCRT_atexit_t
static int MSVCRT_atexit_table_size = 0;
static int MSVCRT_atexit_registered = 0; /* Points to free slot */
-static LPCSTR szMsgBoxTitle = "Wine C++ Runtime Library";
+static const char szMsgBoxTitle[] = "Wine C++ Runtime Library";
extern int MSVCRT_app_type;
extern char *MSVCRT__pgmptr;
diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c
index 32d73d0..aea5488 100644
--- a/dlls/msvcrt/locale.c
+++ b/dlls/msvcrt/locale.c
@@ -65,7 +65,7 @@ extern unsigned char MSVCRT_mbctype[257]
/* Friendly country strings & iso codes for synonym support.
* Based on MS documentation for setlocale().
*/
-static const char* _country_synonyms[] =
+static const char * const _country_synonyms[] =
{
"Hong Kong","HK",
"Hong-Kong","HK",
@@ -484,7 +484,7 @@ MSVCRT_wchar_t* CDECL MSVCRT__wsetlocale
*/
const char* CDECL _Getdays(void)
{
- static const char *MSVCRT_days = ":Sun:Sunday:Mon:Monday:Tue:Tuesday:Wed:"
+ static const char MSVCRT_days[] = ":Sun:Sunday:Mon:Monday:Tue:Tuesday:Wed:"
"Wednesday:Thu:Thursday:Fri:Friday:Sat:Saturday";
/* FIXME: Use locale */
TRACE("(void) semi-stub\n");
@@ -496,7 +496,7 @@ const char* CDECL _Getdays(void)
*/
const char* CDECL _Getmonths(void)
{
- static const char *MSVCRT_months = ":Jan:January:Feb:February:Mar:March:Apr:"
+ static const char MSVCRT_months[] = ":Jan:January:Feb:February:Mar:March:Apr:"
"April:May:May:Jun:June:Jul:July:Aug:August:Sep:September:Oct:"
"October:Nov:November:Dec:December";
/* FIXME: Use locale */
More information about the wine-cvs
mailing list