mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[KMTESTS:RTL]
- Fix a warning svn path=/trunk/; revision=61099
This commit is contained in:
parent
f9209a2045
commit
1485fd938e
1 changed files with 4 additions and 3 deletions
|
@ -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; \
|
||||
|
|
Loading…
Reference in a new issue