Commit 366b753a authored by Dimi Paun's avatar Dimi Paun Committed by Alexandre Julliard

Use the more idiomatic form of iterating through the list.

parent 88fe1ff9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment