Commit 991746b6 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

crypt32: Fix properties list lookup (Coverity).

parent 8d178b18
......@@ -175,12 +175,15 @@ DWORD ContextPropertyList_EnumPropIDs(CONTEXT_PROPERTY_LIST *list, DWORD id)
EnterCriticalSection(&list->cs);
if (id)
{
CONTEXT_PROPERTY *cursor = NULL;
CONTEXT_PROPERTY *cursor = NULL, *prop;
LIST_FOR_EACH_ENTRY(cursor, &list->properties, CONTEXT_PROPERTY, entry)
LIST_FOR_EACH_ENTRY(prop, &list->properties, CONTEXT_PROPERTY, entry)
{
if (cursor->propID == id)
if (prop->propID == id)
{
cursor = prop;
break;
}
}
if (cursor)
{
......
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