Skip to content

Commit

Permalink
scripting plugin fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MutonUfoAI committed Jan 12, 2018
1 parent dc41bc0 commit 3da7a20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Plugins/scripting/scripting/PluginImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ internal bool Run(int sessionId, string cmd, UserInformation userInfo, bool pwd,
}
expand_cmd = expand_cmd.Trim();
expand_cmd_out = expand_cmd_out.Trim();
m_logger.InfoFormat("execute {0} {1} {2}", pwd, sys, expand_cmd_out);
m_logger.InfoFormat("execute {0}", expand_cmd_out);

if (sys)
{
Expand Down
4 changes: 2 additions & 2 deletions pGina/src/Abstractions/WindowsApi/pInvokes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1435,8 +1435,8 @@ public static System.Diagnostics.Process StartProcessWithToken(IntPtr token, str
// Now we can finally get into the business at hand and setup our process info
SafeNativeMethods.STARTUPINFO startInfo = new SafeNativeMethods.STARTUPINFO();
startInfo.cb = Marshal.SizeOf(startInfo);
startInfo.wShowWindow = 0;
startInfo.lpDesktop = "Winsta0\\Default"; // TBD: Support other desktops?
//startInfo.wShowWindow = 0;
//startInfo.lpDesktop = "Winsta0\\Default"; // TBD: Support other desktops?

SafeNativeMethods.PROCESS_INFORMATION procInfo = new SafeNativeMethods.PROCESS_INFORMATION();
if (!SafeNativeMethods.CreateProcessAsUser(token, null, cmdLine, ref defSec, ref defSec, false, SafeNativeMethods.CreationFlags.CREATE_UNICODE_ENVIRONMENT, environmentBlock, null, ref startInfo, out procInfo))
Expand Down

0 comments on commit 3da7a20

Please sign in to comment.