Use the more idiomatic form of iterating through the list.

This commit is contained in:
Dimi Paun 2005-05-18 09:45:53 +00:00 committed by Alexandre Julliard
parent 88fe1ff962
commit 366b753a50
1 changed files with 2 additions and 1 deletions

View File

@ -480,7 +480,8 @@ ULONG WINAPI RtlRemoveVectoredExceptionHandler( PVOID handler )
RtlEnterCriticalSection( &vectored_handlers_section );
LIST_FOR_EACH( ptr, &vectored_handlers )
{
if (ptr == &((VECTORED_HANDLER *)handler)->entry)
VECTORED_HANDLER *curr_handler = LIST_ENTRY( ptr, VECTORED_HANDLER, entry );
if (curr_handler == handler)
{
list_remove( ptr );
ret = TRUE;