From 1229e0ab29a6cab6b25585775ca9728b14dd94f9 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 17 Sep 2008 10:55:43 +0100 Subject: [PATCH] kernel32: Fix character count passed to GlobalGetAtomNameW in test_get_atom_name. --- dlls/kernel32/tests/atom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/kernel32/tests/atom.c b/dlls/kernel32/tests/atom.c index fcf60e2765d..9601fd616c9 100644 --- a/dlls/kernel32/tests/atom.c +++ b/dlls/kernel32/tests/atom.c @@ -304,7 +304,7 @@ static void test_get_atom_name(void) do_initW(inW, "abcdefghij", 255); atom = GlobalAddAtomW(inW); ok(atom, "couldn't add atom for %s\n", in); - len = GlobalGetAtomNameW(atom, outW, sizeof(outW)); + len = GlobalGetAtomNameW(atom, outW, sizeof(outW)/sizeof(outW[0])); ok(len == 255, "length mismatch (%u instead of 255)\n", len); for (i = 0; i < 255; i++) { -- 2.11.4.GIT