[KMTESTS] Fix MSVC build.

This commit is contained in:
Hermès Bélusca-Maïto 2020-11-22 18:42:07 +01:00
parent 0f7dfcaa55
commit 3ad6cee484
No known key found for this signature in database
GPG Key ID: 3B2539C65E7B93D0

View File

@ -42,6 +42,7 @@ TestAMLIllegalIOPortAddresses(void)
PHAL_AMLI_BAD_IO_ADDRESS_LIST AddressList;
ULONG AddressListLength;
ULONG ReturnedLength;
ULONG i;
/* Query required size and check that it's valid */
ReturnedLength = 0x55555555;
@ -103,7 +104,7 @@ TestAMLIllegalIOPortAddresses(void)
/* Validate the table against our expectations */
ok_eq_ulong(ReturnedLength, sizeof(ExpectedList));
for (ULONG i = 0;
for (i = 0;
i < min(ReturnedLength, sizeof(ExpectedList)) / sizeof(*AddressList);
i++)
{