dinput/tests: Add static asserts for arrays that have to match in size.
Signed-off-by: Arkadiusz Hiler <ahiler@codeweavers.com> Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d397f76338
commit
2420f7e188
|
@ -2311,6 +2311,9 @@ static BOOL test_device_types( DWORD version )
|
|||
},
|
||||
};
|
||||
|
||||
C_ASSERT(ARRAY_SIZE(expect_caps) == ARRAY_SIZE(device_desc));
|
||||
C_ASSERT(ARRAY_SIZE(expect_devinst) == ARRAY_SIZE(device_desc));
|
||||
|
||||
DIDEVICEINSTANCEW devinst = {.dwSize = sizeof(DIDEVICEINSTANCEW)};
|
||||
DIDEVCAPS caps = {.dwSize = sizeof(DIDEVCAPS)};
|
||||
WCHAR cwd[MAX_PATH], tempdir[MAX_PATH];
|
||||
|
|
Loading…
Reference in New Issue