msvcp90: Added empty locale constructor and destructor implementation.
This commit is contained in:
parent
b7b0c1b18b
commit
a3c395b791
|
@ -491,8 +491,16 @@ locale* __thiscall locale_ctor_uninitialized(locale *this, int uninitialized)
|
||||||
DEFINE_THISCALL_WRAPPER(locale_ctor, 4)
|
DEFINE_THISCALL_WRAPPER(locale_ctor, 4)
|
||||||
locale* __thiscall locale_ctor(locale *this)
|
locale* __thiscall locale_ctor(locale *this)
|
||||||
{
|
{
|
||||||
FIXME("(%p) stub\n", this);
|
TRACE("(%p)\n", this);
|
||||||
return NULL;
|
this->ptr = MSVCRT_operator_new(sizeof(locale__Locimp));
|
||||||
|
if(!this->ptr) {
|
||||||
|
ERR("Out of memory\n");
|
||||||
|
throw_exception(EXCEPTION_BAD_ALLOC, NULL);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
locale__Locimp_ctor(this->ptr);
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ??1locale@std@@QAE@XZ */
|
/* ??1locale@std@@QAE@XZ */
|
||||||
|
@ -500,13 +508,14 @@ locale* __thiscall locale_ctor(locale *this)
|
||||||
DEFINE_THISCALL_WRAPPER(locale_dtor, 4)
|
DEFINE_THISCALL_WRAPPER(locale_dtor, 4)
|
||||||
void __thiscall locale_dtor(locale *this)
|
void __thiscall locale_dtor(locale *this)
|
||||||
{
|
{
|
||||||
FIXME("(%p) stub\n", this);
|
TRACE("(%p)\n", this);
|
||||||
|
locale__Locimp_dtor(this->ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_THISCALL_WRAPPER(MSVCP_locale_vector_dtor, 8)
|
DEFINE_THISCALL_WRAPPER(MSVCP_locale_vector_dtor, 8)
|
||||||
locale* __thiscall MSVCP_locale_vector_dtor(locale *this, unsigned int flags)
|
locale* __thiscall MSVCP_locale_vector_dtor(locale *this, unsigned int flags)
|
||||||
{
|
{
|
||||||
TRACE("(%p %x) stub\n", this, flags);
|
TRACE("(%p %x)\n", this, flags);
|
||||||
if(flags & 2) {
|
if(flags & 2) {
|
||||||
/* we have an array, with the number of elements stored before the first object */
|
/* we have an array, with the number of elements stored before the first object */
|
||||||
int i, *ptr = (int *)this-1;
|
int i, *ptr = (int *)this-1;
|
||||||
|
|
|
@ -195,7 +195,7 @@ MSVCP_size_t __stdcall MSVCP_allocator_wchar_max_size(void*);
|
||||||
/* class locale */
|
/* class locale */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
struct locale__Locimp *ptr;
|
struct _locale__Locimp *ptr;
|
||||||
} locale;
|
} locale;
|
||||||
|
|
||||||
locale* __thiscall locale_ctor(locale*);
|
locale* __thiscall locale_ctor(locale*);
|
||||||
|
|
Loading…
Reference in New Issue