Don't Dispose() of the resource data reader
This commit is contained in:
parent
5495d4a6c5
commit
99b38ac22f
|
@ -105,7 +105,8 @@ namespace de4dot.code.deobfuscators.Agile_NET {
|
||||||
}
|
}
|
||||||
|
|
||||||
byte[] decryptResource(EmbeddedResource resource) {
|
byte[] decryptResource(EmbeddedResource resource) {
|
||||||
using (var reader = resource.Data) {
|
var reader = resource.Data;
|
||||||
|
reader.Position = 0;
|
||||||
var key = reader.ReadString();
|
var key = reader.ReadString();
|
||||||
var data = reader.ReadRemainingBytes();
|
var data = reader.ReadRemainingBytes();
|
||||||
var cryptoTransform = new DESCryptoServiceProvider {
|
var cryptoTransform = new DESCryptoServiceProvider {
|
||||||
|
@ -119,4 +120,3 @@ namespace de4dot.code.deobfuscators.Agile_NET {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user