dinput/tests: Use GET_DIDEVICE_SUBTYPE macro in keyboard type tests.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c6d28c9399
commit
75a2893fca
|
@ -273,9 +273,9 @@ static void test_capabilities(IDirectInputA *pDI, HWND hwnd)
|
|||
|
||||
ok (SUCCEEDED(hr), "GetCapabilities failed: 0x%08x\n", hr);
|
||||
ok (caps.dwFlags & DIDC_ATTACHED, "GetCapabilities dwFlags: 0x%08x\n", caps.dwFlags);
|
||||
ok (LOWORD(LOBYTE(caps.dwDevType)) == DIDEVTYPE_KEYBOARD,
|
||||
ok (GET_DIDEVICE_TYPE(caps.dwDevType) == DIDEVTYPE_KEYBOARD,
|
||||
"GetCapabilities invalid device type for dwDevType: 0x%08x\n", caps.dwDevType);
|
||||
ok (LOWORD(HIBYTE(caps.dwDevType)) != DIDEVTYPEKEYBOARD_UNKNOWN,
|
||||
ok (GET_DIDEVICE_SUBTYPE(caps.dwDevType) != DIDEVTYPEKEYBOARD_UNKNOWN,
|
||||
"GetCapabilities invalid device subtype for dwDevType: 0x%08x\n", caps.dwDevType);
|
||||
|
||||
IUnknown_Release(pKeyboard);
|
||||
|
|
Loading…
Reference in New Issue