Andrew Talbot : msvcrt: Constify some variables.

Alexandre Julliard julliard at winehq.org
Tue Aug 23 12:45:02 CDT 2011


Module: wine
Branch: master
Commit: dce81b946545c71b1cd5bd774ea611eedf19c6e4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dce81b946545c71b1cd5bd774ea611eedf19c6e4

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Mon Aug 22 20:31:47 2011 +0100

msvcrt: Constify some variables.

---

 dlls/msvcrt/locale.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c
index 64960d9..b329dbc 100644
--- a/dlls/msvcrt/locale.c
+++ b/dlls/msvcrt/locale.c
@@ -213,7 +213,7 @@ static LCID MSVCRT_locale_to_LCID(const char *locale)
 {
     LCID lcid;
     locale_search_t search;
-    char *cp, *region;
+    const char *cp, *region;
 
     memset(&search, 0, sizeof(locale_search_t));
 
@@ -676,7 +676,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
     else if(!locale[0])
         lcid[0] = GetSystemDefaultLCID();
     else if (locale[0] == 'L' && locale[1] == 'C' && locale[2] == '_') {
-        char *p;
+        const char *p;
 
         while(1) {
             locale += 3; /* LC_ */




More information about the wine-cvs mailing list