From 65e0ef359abd03c7f417b1aaf29695e9ebb222f8 Mon Sep 17 00:00:00 2001 From: de4dot Date: Wed, 28 Sep 2011 23:54:38 +0200 Subject: [PATCH] Enabled reading and loading of files from the network --- AssemblyData/AssemblyResolver.cs | 2 +- AssemblyServer-x64/App.config | 3 +++ AssemblyServer-x86/App.config | 3 +++ AssemblyServer/App.config | 3 +++ de4dot-x64/App.config | 3 +++ de4dot-x86/App.config | 3 +++ de4dot.code/AssemblyModule.cs | 2 +- de4dot/App.config | 3 +++ dumpMethods/App.config | 3 +++ 9 files changed, 23 insertions(+), 2 deletions(-) diff --git a/AssemblyData/AssemblyResolver.cs b/AssemblyData/AssemblyResolver.cs index 552a34c3..4871d7af 100644 --- a/AssemblyData/AssemblyResolver.cs +++ b/AssemblyData/AssemblyResolver.cs @@ -103,7 +103,7 @@ namespace AssemblyData { addAssemblySearchPath(dirName); try { - using (var xmlStream = new FileStream(configFilename, FileMode.Open)) { + using (var xmlStream = new FileStream(configFilename, FileMode.Open, FileAccess.Read, FileShare.Read)) { var doc = new XmlDocument(); doc.Load(XmlReader.Create(xmlStream)); foreach (var tmp in doc.GetElementsByTagName("probing")) { diff --git a/AssemblyServer-x64/App.config b/AssemblyServer-x64/App.config index 752a43b7..272ab1c9 100644 --- a/AssemblyServer-x64/App.config +++ b/AssemblyServer-x64/App.config @@ -4,4 +4,7 @@ + + + \ No newline at end of file diff --git a/AssemblyServer-x86/App.config b/AssemblyServer-x86/App.config index 752a43b7..272ab1c9 100644 --- a/AssemblyServer-x86/App.config +++ b/AssemblyServer-x86/App.config @@ -4,4 +4,7 @@ + + + \ No newline at end of file diff --git a/AssemblyServer/App.config b/AssemblyServer/App.config index 752a43b7..272ab1c9 100644 --- a/AssemblyServer/App.config +++ b/AssemblyServer/App.config @@ -4,4 +4,7 @@ + + + \ No newline at end of file diff --git a/de4dot-x64/App.config b/de4dot-x64/App.config index 752a43b7..272ab1c9 100644 --- a/de4dot-x64/App.config +++ b/de4dot-x64/App.config @@ -4,4 +4,7 @@ + + + \ No newline at end of file diff --git a/de4dot-x86/App.config b/de4dot-x86/App.config index 752a43b7..272ab1c9 100644 --- a/de4dot-x86/App.config +++ b/de4dot-x86/App.config @@ -4,4 +4,7 @@ + + + \ No newline at end of file diff --git a/de4dot.code/AssemblyModule.cs b/de4dot.code/AssemblyModule.cs index d77fa54b..8181e5d3 100644 --- a/de4dot.code/AssemblyModule.cs +++ b/de4dot.code/AssemblyModule.cs @@ -50,7 +50,7 @@ namespace de4dot { void readMethodsFile() { if (new FileInfo(methodsFilename).Exists) { - using (var reader = new BinaryReader(File.Open(methodsFilename, FileMode.Open))) { + using (var reader = new BinaryReader(File.Open(methodsFilename, FileMode.Open, FileAccess.Read, FileShare.Read))) { dumpedMethods = new DumpedMethodsReader(reader).read(); } } diff --git a/de4dot/App.config b/de4dot/App.config index 752a43b7..272ab1c9 100644 --- a/de4dot/App.config +++ b/de4dot/App.config @@ -4,4 +4,7 @@ + + + \ No newline at end of file diff --git a/dumpMethods/App.config b/dumpMethods/App.config index 8086c4fe..01514aab 100644 --- a/dumpMethods/App.config +++ b/dumpMethods/App.config @@ -5,4 +5,7 @@ + + + \ No newline at end of file