We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9effe5 commit 9e4ee18Copy full SHA for 9e4ee18
snippets/cpp/VS_Snippets_CLR/EventLogEntry_Source/CPP/eventlogentry_source.cpp
@@ -48,7 +48,7 @@ int main()
48
int myCount = myLogEntryCollection->Count;
49
50
// Iterate through all 'EventLogEntry' instances in 'EventLog'.
51
- for ( int i = myCount - 1; i > 0; i-- )
+ for ( int i = myCount - 1; i > -1; i-- )
52
{
53
EventLogEntry^ myLogEntry = myLogEntryCollection[ i ];
54
0 commit comments