kernel32: Fix character count passed to GlobalGetAtomNameW in test_get_atom_name.
This commit is contained in:
parent
bdc9440d65
commit
1229e0ab29
|
@ -304,7 +304,7 @@ static void test_get_atom_name(void)
|
||||||
do_initW(inW, "abcdefghij", 255);
|
do_initW(inW, "abcdefghij", 255);
|
||||||
atom = GlobalAddAtomW(inW);
|
atom = GlobalAddAtomW(inW);
|
||||||
ok(atom, "couldn't add atom for %s\n", in);
|
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);
|
ok(len == 255, "length mismatch (%u instead of 255)\n", len);
|
||||||
for (i = 0; i < 255; i++)
|
for (i = 0; i < 255; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue