Commit a558bfad authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

kernel32/tests: DATE_YEARMONTH is only present on W2K and later.

parent b0f7dcdf
......@@ -2214,7 +2214,13 @@ static void test_EnumDateFormatsA(void)
trace("EnumDateFormatsA DATE_YEARMONTH\n");
date_fmt_buf[0] = 0;
SetLastError(0xdeadbeef);
ret = EnumDateFormatsA(enum_datetime_procA, lcid, DATE_YEARMONTH);
if (!ret && (GetLastError() == ERROR_INVALID_FLAGS))
{
skip("DATE_YEARMONTH is only present on W2K and later\n");
return;
}
ok(ret, "EnumDateFormatsA(DATE_YEARMONTH) error %d\n", GetLastError());
trace("%s\n", date_fmt_buf);
/* test the 1st enumerated format */
......
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