mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
DllExporter: Fixed issue with spaces in path
This commit is contained in:
parent
4f0dda50da
commit
e078447838
@ -43,7 +43,7 @@ namespace DllExporter
|
|||||||
|
|
||||||
// Disassemble
|
// Disassemble
|
||||||
Process ildasmProc = new Process();
|
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 = new ProcessStartInfo(ildasmPath, ildasmArgs);
|
||||||
ildasmProc.StartInfo.UseShellExecute = false;
|
ildasmProc.StartInfo.UseShellExecute = false;
|
||||||
ildasmProc.StartInfo.CreateNoWindow = false;
|
ildasmProc.StartInfo.CreateNoWindow = false;
|
||||||
@ -129,8 +129,8 @@ namespace DllExporter
|
|||||||
|
|
||||||
// Reassemble
|
// Reassemble
|
||||||
Process ilasmProc = new Process();
|
Process ilasmProc = new Process();
|
||||||
string resource = hasResource ? string.Format("/resource={0} ", targetResName) : "";
|
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 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 = new ProcessStartInfo(ilasmPath, ilasmArgs);
|
||||||
ilasmProc.StartInfo.UseShellExecute = false;
|
ilasmProc.StartInfo.UseShellExecute = false;
|
||||||
ilasmProc.StartInfo.CreateNoWindow = false;
|
ilasmProc.StartInfo.CreateNoWindow = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user