Module: wine Branch: master Commit: cc46d242e0cc7f27b3db46ee81bb253e1064d1c9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=cc46d242e0cc7f27b3db46ee81...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Feb 16 11:53:06 2009 +0100
user32/tests: Fix some checks of the key value in accelerators.
---
dlls/user32/tests/resource.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/resource.c b/dlls/user32/tests/resource.c index f553b10..c64aff0 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;