From 366b753a5036787f5581dba657ab5f09ae385d4a Mon Sep 17 00:00:00 2001 From: Dimi Paun Date: Wed, 18 May 2005 09:45:53 +0000 Subject: [PATCH] Use the more idiomatic form of iterating through the list. --- dlls/ntdll/exception.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c index 92c8fe95057..9450deb422d 100644 --- a/dlls/ntdll/exception.c +++ b/dlls/ntdll/exception.c @@ -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;