kernel32/tests: Don't test function directly when reporting GetLastError().

This commit is contained in:
André Hentschel 2013-04-03 17:26:22 +02:00 committed by Alexandre Julliard
parent a5d61eef62
commit b815548cf0
1 changed files with 3 additions and 2 deletions

View File

@ -713,8 +713,9 @@ static void test__Gettnames(void)
ok(!strcmp(ret->str[39], "PM"), "ret->str[39] = %s\n", ret->str[39]);
ok(!strcmp(ret->str[40], "M/d/yyyy") || broken(!strcmp(ret->str[40], "M/d/yy"))/*NT*/,
"ret->str[40] = %s\n", ret->str[40]);
ok(GetLocaleInfoA(MAKELCID(LANG_ENGLISH, SORT_DEFAULT), LOCALE_SLONGDATE|LOCALE_NOUSEROVERRIDE,
buf, sizeof(buf)) != 0, "GetLocaleInfo failed: %x\n", GetLastError());
size = GetLocaleInfoA(MAKELCID(LANG_ENGLISH, SORT_DEFAULT),
LOCALE_SLONGDATE|LOCALE_NOUSEROVERRIDE, buf, sizeof(buf));
ok(size, "GetLocaleInfo failed: %x\n", GetLastError());
ok(!strcmp(ret->str[41], buf), "ret->str[41] = %s, expected %s\n", ret->str[41], buf);
free(ret);