From 99949cb21a3c2ee413cfb6eb9002209fecb5e88c Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Sun, 20 Apr 2008 15:33:27 -0500 Subject: [PATCH] kernel32: Fix a test that fails in win9x. --- dlls/kernel32/tests/atom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/kernel32/tests/atom.c b/dlls/kernel32/tests/atom.c index 297741649bc..fcf60e2765d 100644 --- a/dlls/kernel32/tests/atom.c +++ b/dlls/kernel32/tests/atom.c @@ -222,7 +222,9 @@ static void test_get_atom_name(void) memset( buf, '.', sizeof(buf) ); len = GlobalGetAtomNameA( atom, buf, 6 ); - ok( len == 0, "bad length %d\n", len ); + ok( len == 0 || + len == 5, /* win9x */ + "bad length %d\n", len ); ok( !memcmp( buf, "fooba\0....", 10 ), "bad buffer contents\n"); if (unicode_OS) {