From cc46d242e0cc7f27b3db46ee81bb253e1064d1c9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 16 Feb 2009 11:53:06 +0100 Subject: [PATCH] user32/tests: Fix some checks of the key value in accelerators. --- dlls/user32/tests/resource.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/tests/resource.c b/dlls/user32/tests/resource.c index f553b103f8c..c64aff0a60e 100644 --- a/dlls/user32/tests/resource.c +++ b/dlls/user32/tests/resource.c @@ -199,12 +199,12 @@ static void test_accel1(void) if (++n == r) goto done; ok( ac[n].cmd == 0xfff0, "cmd 2 not preserved got %x\n", ac[n].cmd); - ok( ac[n].key == 0x00ff, "key 2 not preserved got %x\n", ac[n].key); + ok( (ac[n].key & 0xff) == 0xff, "key 2 not preserved got %x\n", ac[n].key); ok( ac[n].fVirt == 0x0070, "fVirt 2 wrong got %x\n", ac[n].fVirt); if (++n == r) goto done; ok( ac[n].cmd == 0xfff0, "cmd 3 not preserved got %x\n", ac[n].cmd); - ok( ac[n].key == 0x00ff, "key 3 not preserved got %x\n", ac[n].key); + ok( (ac[n].key & 0xff) == 0xff, "key 3 not preserved got %x\n", ac[n].key); ok( ac[n].fVirt == 0x0000, "fVirt 3 wrong got %x\n", ac[n].fVirt); if (++n == r) goto done;