Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit d3ea409

Browse files
committed
Fix #1039.
1 parent bdb12ec commit d3ea409

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/SharpDX.MediaFoundation/MediaAttributes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ public unsafe void Set<T>(System.Guid guidKey, T value)
275275
return;
276276
}
277277

278-
if (typeof(T) == typeof(ComObject) || typeof(T).GetTypeInfo().IsSubclassOf(typeof(ComObject)))
278+
if (typeof(T) == typeof(ComObject) || typeof(T).GetTypeInfo().IsSubclassOf(typeof(IUnknown)))
279279
{
280-
Set(guidKey, ((ComObject)(object)value));
280+
Set(guidKey, ((IUnknown)(object)value));
281281
return;
282282
}
283283

0 commit comments

Comments
 (0)