Alexandre Julliard : msvcrt: Use the correct strdup function for locale data.
Alexandre Julliard
julliard at winehq.org
Mon Jun 28 11:01:18 CDT 2010
Module: wine
Branch: master
Commit: c5e88a3a69adf6b2bcd32b070dbf168bc83707d8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c5e88a3a69adf6b2bcd32b070dbf168bc83707d8
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Jun 28 11:45:01 2010 +0200
msvcrt: Use the correct strdup function for locale data.
---
dlls/msvcrt/locale.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c
index 393a23d..06c8da1 100644
--- a/dlls/msvcrt/locale.c
+++ b/dlls/msvcrt/locale.c
@@ -741,7 +741,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
return NULL;
}
} else
- loc->locinfo->lc_category[MSVCRT_LC_COLLATE].locale = strdup("C");
+ loc->locinfo->lc_category[MSVCRT_LC_COLLATE].locale = _strdup("C");
if(lcid[MSVCRT_LC_CTYPE] && (category==MSVCRT_LC_ALL || category==MSVCRT_LC_CTYPE)) {
CPINFO cp;
@@ -783,7 +783,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
loc->locinfo->lc_clike = 1;
loc->locinfo->mb_cur_max = 1;
loc->locinfo->pctype = MSVCRT__ctype+1;
- loc->locinfo->lc_category[MSVCRT_LC_CTYPE].locale = strdup("C");
+ loc->locinfo->lc_category[MSVCRT_LC_CTYPE].locale = _strdup("C");
}
for(i=0; i<256; i++)
@@ -988,7 +988,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
loc->locinfo->lconv->p_sign_posn = 127;
loc->locinfo->lconv->n_sign_posn = 127;
- loc->locinfo->lc_category[MSVCRT_LC_MONETARY].locale = strdup("C");
+ loc->locinfo->lc_category[MSVCRT_LC_MONETARY].locale = _strdup("C");
}
if(lcid[MSVCRT_LC_NUMERIC] && (category==MSVCRT_LC_ALL || category==MSVCRT_LC_NUMERIC)) {
@@ -1055,7 +1055,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
loc->locinfo->lconv->thousands_sep[0] = '\0';
loc->locinfo->lconv->grouping[0] = '\0';
- loc->locinfo->lc_category[MSVCRT_LC_NUMERIC].locale = strdup("C");
+ loc->locinfo->lc_category[MSVCRT_LC_NUMERIC].locale = _strdup("C");
}
if(lcid[MSVCRT_LC_TIME] && (category==MSVCRT_LC_ALL || category==MSVCRT_LC_TIME)) {
@@ -1064,7 +1064,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
return NULL;
}
} else
- loc->locinfo->lc_category[MSVCRT_LC_TIME].locale = strdup("C");
+ loc->locinfo->lc_category[MSVCRT_LC_TIME].locale = _strdup("C");
return loc;
}
More information about the wine-cvs
mailing list