Author: tfaber
Date: Tue Nov 26 14:26:31 2013
New Revision: 61099
URL: 
http://svn.reactos.org/svn/reactos?rev=61099&view=rev
Log:
[KMTESTS:RTL]
- Fix a warning
Modified:
    trunk/rostests/kmtests/rtl/RtlRegistry.c
Modified: trunk/rostests/kmtests/rtl/RtlRegistry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/rtl/RtlRegistry.c…
==============================================================================
--- trunk/rostests/kmtests/rtl/RtlRegistry.c    [iso-8859-1] (original)
+++ trunk/rostests/kmtests/rtl/RtlRegistry.c    [iso-8859-1] Tue Nov 26 14:26:31 2013
@@ -122,7 +122,8 @@
 #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 @@
             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;                          \