CreateProcess change

This commit is contained in:
Jaex 2017-02-10 17:32:18 +03:00
parent 14a0c1db86
commit 9569a3eefb
5 changed files with 4 additions and 8 deletions

View file

@ -503,7 +503,7 @@ public static bool CreateProcess(string path, string arguments, CreateProcessFla
pSec.nLength = Marshal.SizeOf(pSec);
tSec.nLength = Marshal.SizeOf(tSec);
return CreateProcess(null, $"\"{path}\" {arguments}", ref pSec, ref tSec, false, (uint)flags, IntPtr.Zero, null, ref sInfo, out pInfo);
return CreateProcess(path, $"\"{path}\" {arguments}", ref pSec, ref tSec, false, (uint)flags, IntPtr.Zero, null, ref sInfo, out pInfo);
}
}
}

View file

@ -25,7 +25,7 @@
namespace ShareX.NativeMessagingHost
{
public class NativeMessageInput
public class NativeMessagingInput
{
public string URL { get; set; }
public string Text { get; set; }

View file

@ -52,7 +52,7 @@ private static void Run()
if (!string.IsNullOrEmpty(input))
{
NativeMessageInput chromeInput = JsonConvert.DeserializeObject<NativeMessageInput>(input);
NativeMessagingInput chromeInput = JsonConvert.DeserializeObject<NativeMessagingInput>(input);
if (chromeInput != null)
{

View file

@ -4,7 +4,7 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ShareX Chrome")]
[assembly: AssemblyTitle("ShareX NativeMessagingHost")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("ShareX Team")]

View file

@ -51,12 +51,8 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Chrome\manifest.json" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="Chrome\eventPage.js" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ShareX.HelpersLib\ShareX.HelpersLib.csproj">
<Project>{327750e1-9fb7-4cc3-8aea-9bc42180cad3}</Project>