From 1485fd938e1bcbb291050eaed502ab4003a43498 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Tue, 26 Nov 2013 14:26:31 +0000 Subject: [PATCH] [KMTESTS:RTL] - Fix a warning svn path=/trunk/; revision=61099 --- rostests/kmtests/rtl/RtlRegistry.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rostests/kmtests/rtl/RtlRegistry.c b/rostests/kmtests/rtl/RtlRegistry.c index 3a74dec51ab..a439e637bf0 100644 --- a/rostests/kmtests/rtl/RtlRegistry.c +++ b/rostests/kmtests/rtl/RtlRegistry.c @@ -122,7 +122,8 @@ TestRtlQueryRegistryValues( #define DO_QUERY(ExpectedArray, ExpectedCount) do \ { \ ULONG _i; \ - for (_i = 0; _i < (ExpectedCount); _i++) \ + ULONG _ExpectedCount = (ExpectedCount); \ + for (_i = 0; _i < _ExpectedCount; _i++) \ { \ Expected.Values[_i].ValueName = ValueName.Buffer; \ Expected.Values[_i].ValueType = REG_SZ; \ @@ -130,8 +131,8 @@ TestRtlQueryRegistryValues( Expected.Values[_i].ValueLength = (ExpectedArray)[_i].Len; \ } \ Expected.CurrentIndex = 0; \ - Expected.Count = (ExpectedCount); \ - if ((ExpectedCount) == 1) \ + Expected.Count = _ExpectedCount; \ + if (_ExpectedCount == 1) \ QueryTable[0].EntryContext = &Expected.Values[0]; \ else \ QueryTable[0].EntryContext = NULL; \