Rob Shearman : kernel32: Fix the number of characters passed to GetAtomNameW in test_local_get_atom_name .
Alexandre Julliard
julliard at winehq.org
Mon Feb 25 06:51:44 CST 2008
Module: wine
Branch: master
Commit: 492be1b5e34467d21ea547ffc1c2128ceda65d3e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=492be1b5e34467d21ea547ffc1c2128ceda65d3e
Author: Rob Shearman <rob at codeweavers.com>
Date: Mon Feb 25 09:02:03 2008 +0000
kernel32: Fix the number of characters passed to GetAtomNameW in test_local_get_atom_name.
---
dlls/kernel32/tests/atom.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/tests/atom.c b/dlls/kernel32/tests/atom.c
index f21b2b1..2977416 100644
--- a/dlls/kernel32/tests/atom.c
+++ b/dlls/kernel32/tests/atom.c
@@ -566,7 +566,7 @@ static void test_local_get_atom_name(void)
do_initW(inW, "abcdefghij", 255);
atom = AddAtomW(inW);
ok(atom, "couldn't add atom for %s\n", in);
- len = GetAtomNameW(atom, outW, sizeof(outW));
+ len = GetAtomNameW(atom, outW, sizeof(outW)/sizeof(outW[0]));
ok(len == 255, "length mismatch (%u instead of 255)\n", len);
for (i = 0; i < 255; i++)
{
More information about the wine-cvs
mailing list