Commit 0b58d83d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcp110: Use ___lc_locale_name_func in _Getdateorder.

parent bcc29002
...@@ -761,9 +761,15 @@ int __cdecl _Getdateorder(void) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment