=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: kernel32/tests: Don' t test function directly when reporting GetLastError().

Alexandre Julliard julliard at winehq.org
Wed Apr 3 14:33:55 CDT 2013


Module: wine
Branch: master
Commit: b815548cf07a343fae3afa470ef669de86c8f6e2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b815548cf07a343fae3afa470ef669de86c8f6e2

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Apr  3 17:26:22 2013 +0200

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

---

 dlls/msvcrt/tests/locale.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcrt/tests/locale.c b/dlls/msvcrt/tests/locale.c
index 257e3c8..63f8a59 100644
--- a/dlls/msvcrt/tests/locale.c
+++ b/dlls/msvcrt/tests/locale.c
@@ -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);
 




More information about the wine-cvs mailing list