msvcp: Added _Getdateorder implementation.
This commit is contained in:
parent
20080c616d
commit
b0f8a2b85f
|
@ -2912,7 +2912,7 @@
|
||||||
@ cdecl -ret64 _Getcoll()
|
@ cdecl -ret64 _Getcoll()
|
||||||
@ cdecl _Getctype(ptr)
|
@ cdecl _Getctype(ptr)
|
||||||
@ cdecl -ret64 _Getcvt()
|
@ cdecl -ret64 _Getcvt()
|
||||||
@ stub _Getdateorder
|
@ cdecl _Getdateorder()
|
||||||
@ cdecl _Getwctype(long ptr)
|
@ cdecl _Getwctype(long ptr)
|
||||||
@ cdecl _Getwctypes(ptr ptr ptr ptr)
|
@ cdecl _Getwctypes(ptr ptr ptr ptr)
|
||||||
@ extern _Hugeval
|
@ extern _Hugeval
|
||||||
|
|
|
@ -3781,7 +3781,7 @@
|
||||||
@ cdecl -ret64 _Getcoll()
|
@ cdecl -ret64 _Getcoll()
|
||||||
@ cdecl _Getctype(ptr)
|
@ cdecl _Getctype(ptr)
|
||||||
@ cdecl -ret64 _Getcvt()
|
@ cdecl -ret64 _Getcvt()
|
||||||
@ stub _Getdateorder
|
@ cdecl _Getdateorder()
|
||||||
@ cdecl _Getwctype(long ptr)
|
@ cdecl _Getwctype(long ptr)
|
||||||
@ cdecl _Getwctypes(ptr ptr ptr ptr)
|
@ cdecl _Getwctypes(ptr ptr ptr ptr)
|
||||||
@ extern _Hugeval
|
@ extern _Hugeval
|
||||||
|
|
|
@ -3724,7 +3724,7 @@
|
||||||
@ cdecl -ret64 _Getcoll()
|
@ cdecl -ret64 _Getcoll()
|
||||||
@ cdecl _Getctype(ptr)
|
@ cdecl _Getctype(ptr)
|
||||||
@ cdecl -ret64 _Getcvt()
|
@ cdecl -ret64 _Getcvt()
|
||||||
@ stub _Getdateorder
|
@ cdecl _Getdateorder()
|
||||||
@ cdecl _Getwctype(long ptr)
|
@ cdecl _Getwctype(long ptr)
|
||||||
@ cdecl _Getwctypes(ptr ptr ptr ptr)
|
@ cdecl _Getwctypes(ptr ptr ptr ptr)
|
||||||
@ extern _Hugeval
|
@ extern _Hugeval
|
||||||
|
|
|
@ -3724,7 +3724,7 @@
|
||||||
@ cdecl -ret64 _Getcoll() msvcp120._Getcoll
|
@ cdecl -ret64 _Getcoll() msvcp120._Getcoll
|
||||||
@ cdecl _Getctype(ptr) msvcp120._Getctype
|
@ cdecl _Getctype(ptr) msvcp120._Getctype
|
||||||
@ cdecl -ret64 _Getcvt() msvcp120._Getcvt
|
@ cdecl -ret64 _Getcvt() msvcp120._Getcvt
|
||||||
@ stub _Getdateorder
|
@ cdecl _Getdateorder() msvcp120._Getdateorder
|
||||||
@ cdecl _Getwctype(long ptr) msvcp120._Getwctype
|
@ cdecl _Getwctype(long ptr) msvcp120._Getwctype
|
||||||
@ cdecl _Getwctypes(ptr ptr ptr ptr) msvcp120._Getwctypes
|
@ cdecl _Getwctypes(ptr ptr ptr ptr) msvcp120._Getwctypes
|
||||||
@ extern _Hugeval msvcp120._Hugeval
|
@ extern _Hugeval msvcp120._Hugeval
|
||||||
|
|
|
@ -5727,7 +5727,7 @@
|
||||||
@ cdecl -ret64 _Getcoll()
|
@ cdecl -ret64 _Getcoll()
|
||||||
@ cdecl _Getctype(ptr)
|
@ cdecl _Getctype(ptr)
|
||||||
@ cdecl -ret64 _Getcvt()
|
@ cdecl -ret64 _Getcvt()
|
||||||
@ stub _Getdateorder
|
@ cdecl _Getdateorder()
|
||||||
@ cdecl _Getwctype(long ptr)
|
@ cdecl _Getwctype(long ptr)
|
||||||
@ cdecl _Getwctypes(ptr ptr ptr ptr)
|
@ cdecl _Getwctypes(ptr ptr ptr ptr)
|
||||||
@ extern _Hugeval
|
@ extern _Hugeval
|
||||||
|
|
|
@ -38,6 +38,14 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(msvcp);
|
WINE_DEFAULT_DEBUG_CHANNEL(msvcp);
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
DATEORDER_no_order,
|
||||||
|
DATEORDER_dmy,
|
||||||
|
DATEORDER_mdy,
|
||||||
|
DATEORDER_ymd,
|
||||||
|
DATEORDER_ydm
|
||||||
|
} dateorder;
|
||||||
|
|
||||||
char* __cdecl _Getdays(void);
|
char* __cdecl _Getdays(void);
|
||||||
char* __cdecl _Getmonths(void);
|
char* __cdecl _Getmonths(void);
|
||||||
void* __cdecl _Gettnames(void);
|
void* __cdecl _Gettnames(void);
|
||||||
|
@ -689,13 +697,27 @@ _Cvtvec* __thiscall _Locinfo__Getcvt(const _Locinfo *this, _Cvtvec *ret)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __cdecl _Getdateorder(void)
|
||||||
|
{
|
||||||
|
WCHAR date_fmt[2];
|
||||||
|
|
||||||
|
if(!GetLocaleInfoW(___lc_handle_func()[LC_TIME], LOCALE_ILDATE,
|
||||||
|
date_fmt, sizeof(date_fmt)/sizeof(*date_fmt)))
|
||||||
|
return DATEORDER_no_order;
|
||||||
|
|
||||||
|
if(*date_fmt == '0') return DATEORDER_mdy;
|
||||||
|
if(*date_fmt == '1') return DATEORDER_dmy;
|
||||||
|
if(*date_fmt == '2') return DATEORDER_ymd;
|
||||||
|
return DATEORDER_no_order;
|
||||||
|
}
|
||||||
|
|
||||||
/* ?_Getdateorder@_Locinfo@std@@QBEHXZ */
|
/* ?_Getdateorder@_Locinfo@std@@QBEHXZ */
|
||||||
/* ?_Getdateorder@_Locinfo@std@@QEBAHXZ */
|
/* ?_Getdateorder@_Locinfo@std@@QEBAHXZ */
|
||||||
DEFINE_THISCALL_WRAPPER(_Locinfo__Getdateorder, 4)
|
DEFINE_THISCALL_WRAPPER(_Locinfo__Getdateorder, 4)
|
||||||
int __thiscall _Locinfo__Getdateorder(const _Locinfo *this)
|
int __thiscall _Locinfo__Getdateorder(const _Locinfo *this)
|
||||||
{
|
{
|
||||||
FIXME("(%p) stub\n", this);
|
TRACE("(%p)\n", this);
|
||||||
return 0;
|
return _Getdateorder();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ?_Getdays@_Locinfo@std@@QBEPBDXZ */
|
/* ?_Getdays@_Locinfo@std@@QBEPBDXZ */
|
||||||
|
|
|
@ -6499,7 +6499,7 @@
|
||||||
@ cdecl -ret64 _Getcoll()
|
@ cdecl -ret64 _Getcoll()
|
||||||
@ cdecl _Getctype(ptr)
|
@ cdecl _Getctype(ptr)
|
||||||
@ cdecl -ret64 _Getcvt()
|
@ cdecl -ret64 _Getcvt()
|
||||||
@ stub _Getdateorder
|
@ cdecl _Getdateorder()
|
||||||
@ cdecl _Getwctype(long ptr)
|
@ cdecl _Getwctype(long ptr)
|
||||||
@ cdecl _Getwctypes(ptr ptr ptr ptr)
|
@ cdecl _Getwctypes(ptr ptr ptr ptr)
|
||||||
@ extern _Hugeval
|
@ extern _Hugeval
|
||||||
|
|
Loading…
Reference in New Issue