PREfast Warning 296 (Windows CE 5.0)
296 - Ill-defined for-loop.
Consequence: Body only executed once.
This warning indicates that PREfast has detected a for-loop that might not function as intended.
When the index is unsigned and a loop counts down from zero, its body is executed only once.
Example
Defective Source
unsigned char i;
for (i = 0; i < 100; i--) { ; }
Corrected Source
unsigned char i;
for (i = 0; i < 100; i++) { ; }
Send Feedback on this topic to the authors