msvcp110: Use ___lc_locale_name_func in _Getdateorder.

This commit is contained in:
Piotr Caban 2015-06-17 11:47:24 +02:00 committed by Alexandre Julliard
parent bcc2900282
commit 0b58d83dec
1 changed files with 6 additions and 0 deletions

View File

@ -761,9 +761,15 @@ int __cdecl _Getdateorder(void)
{ {
WCHAR date_fmt[2]; WCHAR date_fmt[2];
#if _MSVCP_VER < 110
if(!GetLocaleInfoW(___lc_handle_func()[LC_TIME], LOCALE_ILDATE, if(!GetLocaleInfoW(___lc_handle_func()[LC_TIME], LOCALE_ILDATE,
date_fmt, sizeof(date_fmt)/sizeof(*date_fmt))) date_fmt, sizeof(date_fmt)/sizeof(*date_fmt)))
return DATEORDER_no_order; return DATEORDER_no_order;
#else
if(!GetLocaleInfoEx(___lc_locale_name_func()[LC_TIME], LOCALE_ILDATE,
date_fmt, sizeof(date_fmt)/sizeof(*date_fmt)))
return DATEORDER_no_order;
#endif
if(*date_fmt == '0') return DATEORDER_mdy; if(*date_fmt == '0') return DATEORDER_mdy;
if(*date_fmt == '1') return DATEORDER_dmy; if(*date_fmt == '1') return DATEORDER_dmy;