ucrtbase: Sync __lc_time_data definitions.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Chip Davis 2020-11-18 17:26:19 +01:00 committed by Alexandre Julliard
parent 898abfc18f
commit 5d07f809a0
2 changed files with 7 additions and 5 deletions

View File

@ -47,7 +47,8 @@ typedef struct {
const char *date;
const char *time;
LCID lcid;
int unk[2];
int unk;
int refcount;
} __lc_time_data;
static __time32_t (__cdecl *p_mkgmtime32)(struct tm*);
@ -824,8 +825,8 @@ static void test_strftime(void)
return;
}
/* TODO: find meaning of unk[0] */
time_data.unk[0] = 1;
/* TODO: find meaning of unk */
time_data.unk = 1;
for (i=0; i<ARRAY_SIZE(tests_td); i++)
{
time_data.short_date = tests_td[i].short_date;

View File

@ -87,7 +87,8 @@ typedef struct {
const char *short_date;
const char *date;
const char *time;
int unk[2];
int unk;
int refcount;
const wchar_t *short_wdayW[7];
const wchar_t *wdayW[7];
const wchar_t *short_monW[12];
@ -1037,7 +1038,7 @@ static void test_strftime(void)
{ "day1", "day2", "day3", "day4", "day5", "day6", "day7" },
{ "m1", "m2", "m3", "m4", "m5", "m6", "m7", "m8", "m9", "m10", "m11", "m12" },
{ "mon1", "mon2", "mon3", "mon4", "mon5", "mon6", "mon7", "mon8", "mon9", "mon10", "mon11", "mon12" },
"tam", "tpm", 0, 0, 0, { 1, 0 },
"tam", "tpm", 0, 0, 0, 1, 0,
{ L"D1", L"D2", L"D3", L"D4", L"D5", L"D6", L"D7" },
{ L"Day1", L"Day2", L"Day3", L"Day4", L"Day5", L"Day6", L"Day7" },
{ L"M1", L"M2", L"M3", L"M4", L"M5", L"M6", L"M7", L"M8", L"M9", L"M10", L"M11", L"M12" },