crypt32: Tiny fixes.

This commit is contained in:
Juan Lang 2006-03-30 08:31:14 -08:00 committed by Alexandre Julliard
parent 5eadd8c791
commit 04ed9c2a57
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,6 @@ BOOL ContextPropertyList_SetProperty(PCONTEXT_PROPERTY_LIST list, DWORD id,
{
prop->propID = id;
prop->cbData = cbData;
list_init(&prop->entry);
prop->pbData = data;
list_add_tail(&list->properties, &prop->entry);
ret = TRUE;
@ -158,6 +157,7 @@ void ContextPropertyList_RemoveProperty(PCONTEXT_PROPERTY_LIST list, DWORD id)
list_remove(&prop->entry);
CryptMemFree(prop->pbData);
CryptMemFree(prop);
break;
}
}
LeaveCriticalSection(&list->cs);