Skip to content

Commit 0f92afd

Browse files
committed
BuildTools: Dont print duplicate ComBases
This can happen when something has 2 ComBases that were typemapped to IUnknown
1 parent ffd2b67 commit 0f92afd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Silk.NET.BuildTools/Bind/StructWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public static void WriteStruct
194194
sw.WriteLine();
195195
}
196196

197-
foreach (var comBase in @struct.ComBases)
197+
foreach (var comBase in @struct.ComBases.RemoveDuplicates())
198198
{
199199
var asSuffix = comBase.Split('.').Last();
200200
asSuffix = asSuffix.StartsWith('I') ? asSuffix.Substring(1) : comBase;

0 commit comments

Comments
 (0)