Browse Source

Ignore empty resources in WholeProjectDecompiler.

pull/1515/head
Siegfried Pammer 6 years ago
parent
commit
09c6c70879
  1. 2
      ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs

2
ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs

@ -423,6 +423,8 @@ namespace ICSharpCode.Decompiler.CSharp @@ -423,6 +423,8 @@ namespace ICSharpCode.Decompiler.CSharp
return new[] { Tuple.Create("EmbeddedResource", resx) };
} catch (BadImageFormatException) {
// if the .resources can't be decoded, just save them as-is
} catch (EndOfStreamException) {
// if the .resources can't be decoded, just save them as-is
}
}
using (FileStream fs = new FileStream(Path.Combine(targetDirectory, fileName), FileMode.Create, FileAccess.Write)) {

Loading…
Cancel
Save