Fix screwed logic in LIST_FOR_EACH and LIST_FOR_EACH_SAFE. They were 1. using inverse...
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 15 Aug 2009 00:40:09 +0000 (00:40 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 15 Aug 2009 00:40:09 +0000 (00:40 +0000)
commit987115d431704eefd596112a62b70a8450a6b6d1
tree07b74fca12667f601c854b4f156adf9daa0b2a92
parentea8e3db7814764832b7c029cc65fa1fdf3ec2ad2
Fix screwed logic in LIST_FOR_EACH and LIST_FOR_EACH_SAFE. They were 1. using inverse logic and entering the loop when elem was NULL, 2. checking elem, whick is the result of CONTAINING_RECORD on the Flink pointer that should be checked for NULL. Anyway these macros are ugly and shouldn't be used, they only obfuscate the code.

svn path=/trunk/; revision=42672
reactos/subsystems/win32/win32k/pch.h