msvcp90: Fixed locale_ctor_cstr implementation.

This commit is contained in:
Piotr Caban 2012-09-06 11:41:31 +02:00 committed by Alexandre Julliard
parent 0e6171f6d7
commit 225cab9842
2 changed files with 6 additions and 2 deletions

View File

@ -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)) {

View File

@ -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)) {