mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
msvcp90: Fixed locale_ctor_cstr implementation.
This commit is contained in:
parent
0e6171f6d7
commit
225cab9842
2 changed files with 6 additions and 2 deletions
|
@ -8142,7 +8142,9 @@ locale* __thiscall locale_ctor_cstr(locale *this, const char *locname, category
|
|||
ERR("Out of memory\n");
|
||||
throw_exception(EXCEPTION_BAD_ALLOC, NULL);
|
||||
}
|
||||
this->ptr = locale__Init();
|
||||
locale__Locimp_ctor(this->ptr);
|
||||
|
||||
locale__Init();
|
||||
|
||||
_Locinfo_ctor_cat_cstr(&locinfo, cat, locname);
|
||||
if(!memcmp(MSVCP_basic_string_char_c_str(&locinfo.newlocname), "*", 2)) {
|
||||
|
|
|
@ -8293,7 +8293,9 @@ locale* __thiscall locale_ctor_cstr(locale *this, const char *locname, category
|
|||
ERR("Out of memory\n");
|
||||
throw_exception(EXCEPTION_BAD_ALLOC, NULL);
|
||||
}
|
||||
this->ptr = locale__Init();
|
||||
locale__Locimp_ctor(this->ptr);
|
||||
|
||||
locale__Init();
|
||||
|
||||
_Locinfo_ctor_cat_cstr(&locinfo, cat, locname);
|
||||
if(!memcmp(MSVCP_basic_string_char_c_str(&locinfo.newlocname), "*", 2)) {
|
||||
|
|
Loading…
Reference in a new issue