crypt32: Fix properties list lookup (Coverity).

This commit is contained in:
Nikolay Sivov 2014-04-14 09:44:11 +04:00 committed by Alexandre Julliard
parent 8d178b185d
commit 991746b605
1 changed files with 6 additions and 3 deletions

View File

@ -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)
{