Commit c5e88a3a authored by Alexandre Julliard's avatar Alexandre Julliard

msvcrt: Use the correct strdup function for locale data.

parent f71c4113
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment