From e07844783828ba3d17cdcdfb090f3507a518e143 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Thu, 4 Oct 2012 20:18:24 +0300 Subject: [PATCH] DllExporter: Fixed issue with spaces in path --- Plugins/API/DllExporter/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/API/DllExporter/Program.cs b/Plugins/API/DllExporter/Program.cs index f0a8a41b..92e76178 100644 --- a/Plugins/API/DllExporter/Program.cs +++ b/Plugins/API/DllExporter/Program.cs @@ -43,7 +43,7 @@ namespace DllExporter // Disassemble Process ildasmProc = new Process(); - string ildasmArgs = string.Format("/nobar /output={0} {1}", targetIlName, targetDllName); + string ildasmArgs = string.Format("/nobar /output=\"{0}\" \"{1}\"", targetIlName, targetDllName); ildasmProc.StartInfo = new ProcessStartInfo(ildasmPath, ildasmArgs); ildasmProc.StartInfo.UseShellExecute = false; ildasmProc.StartInfo.CreateNoWindow = false; @@ -129,8 +129,8 @@ namespace DllExporter // Reassemble Process ilasmProc = new Process(); - string resource = hasResource ? string.Format("/resource={0} ", targetResName) : ""; - string ilasmArgs = string.Format("/nologo /quiet /dll {0} {1} /output={2} {3}{4}", isDebug ? "/debug /pdb" : "/optimize", is64 ? "/x64 /PE64" : "", targetDllName, resource, targetIlName); + string resource = hasResource ? string.Format("/resource=\"{0}\"", targetResName) : ""; + string ilasmArgs = string.Format("/nologo /quiet /dll {0} {1} /output=\"{2}\" {3} \"{4}\"", isDebug ? "/debug /pdb" : "/optimize", is64 ? "/x64 /PE64" : "", targetDllName, resource, targetIlName); ilasmProc.StartInfo = new ProcessStartInfo(ilasmPath, ilasmArgs); ilasmProc.StartInfo.UseShellExecute = false; ilasmProc.StartInfo.CreateNoWindow = false;