Closed stosSe4r closed 2 years ago
At MainForm.cs@572, I think it should be like
bool Result = WinAPI.CreateProcess( null, "\""+ExeLocation+"\"", IntPtr.Zero, IntPtr.Zero, false, ProcessCreationFlags.CREATE_SUSPENDED, IntPtr.Zero, ExeDirectory, ref StartupInfo, out ProcessInfo );
According to MSDN https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa?redirectedfrom=MSDN, any long path with space should be quoted, or the path would be ambiguous. I've seen a rare case that CreateProcess fails to open DS3.exe and returns Error 193 with the original code.
Sounds reasonable, feel free to put in a pull request with the change.
At MainForm.cs@572, I think it should be like
According to MSDN https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa?redirectedfrom=MSDN, any long path with space should be quoted, or the path would be ambiguous. I've seen a rare case that CreateProcess fails to open DS3.exe and returns Error 193 with the original code.