mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-22 19:06:45 +00:00
mfplat: Take a shortcut when comparing attribute with mismatching type.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ced0a1de7e
commit
98500d8dbb
|
@ -757,7 +757,10 @@ static HRESULT WINAPI mfattributes_CompareItem(IMFAttributes *iface, REFGUID key
|
|||
EnterCriticalSection(&attributes->cs);
|
||||
|
||||
if ((attribute = attributes_find_item(attributes, key, NULL)))
|
||||
*result = !PropVariantCompareEx(&attribute->value, value, PVCU_DEFAULT, PVCF_DEFAULT);
|
||||
{
|
||||
*result = attribute->value.vt == value->vt &&
|
||||
!PropVariantCompareEx(&attribute->value, value, PVCU_DEFAULT, PVCF_DEFAULT);
|
||||
}
|
||||
|
||||
LeaveCriticalSection(&attributes->cs);
|
||||
|
||||
|
|
Loading…
Reference in a new issue