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:
Arkadiusz Hiler 2022-01-19 15:04:20 +02:00 committed by Alexandre Julliard
parent d397f76338
commit 2420f7e188
1 changed files with 3 additions and 0 deletions

View File

@ -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];