From e3079ce62c141c302b3c63ac67e6ca2a2d8b66c0 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 1 Jun 2015 09:48:30 -0400 Subject: [PATCH] Switched to GetLocaleInfoEx(). --- redo/windows/datetimepicker.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/redo/windows/datetimepicker.c b/redo/windows/datetimepicker.c index 0aa3e31e..2cff197f 100644 --- a/redo/windows/datetimepicker.c +++ b/redo/windows/datetimepicker.c @@ -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)