Browse Source

Fix #1267: GacInterop: Ignore null values in GetNextAssembly loop.

pull/1347/head
Siegfried Pammer 7 years ago
parent
commit
89c8fed5e6
  1. 1
      ILSpy/GacInterop.cs

1
ILSpy/GacInterop.cs

@ -40,6 +40,7 @@ namespace ICSharpCode.ILSpy @@ -40,6 +40,7 @@ namespace ICSharpCode.ILSpy
Fusion.CreateAssemblyEnum(out assemblyEnum, null, null, 2, 0);
while (assemblyEnum.GetNextAssembly(out applicationContext, out assemblyName, 0) == 0) {
if (assemblyName == null) continue;
uint nChars = 0;
assemblyName.GetDisplayName(null, ref nChars, 0);

Loading…
Cancel
Save