Switched to GetLocaleInfoEx().

This commit is contained in:
Pietro Gagliardi 2015-06-01 09:48:30 -04:00
parent afb7c773fe
commit e3079ce62c
1 changed files with 1 additions and 2 deletions

View File

@ -51,8 +51,7 @@ uiDateTimePicker *finishNewDateTimePicker(DWORD style, WCHAR *format)
return uiDateTimePicker(d);
}
// TODO move to GetLocaleInfoEx() when making Vista-only
#define GLI(what, buf, n) GetLocaleInfoW(LOCALE_USER_DEFAULT, what, buf, n)
#define GLI(what, buf, n) GetLocaleInfoEx(LOCALE_NAME_USER_DEFAULT, what, buf, n)
// Windows has no combined date/time prebuilt constant; we have to build the format string ourselves
uiDateTimePicker *uiNewDateTimePicker(void)