mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-29 17:02:05 +13:00
CreateProcess change
This commit is contained in:
parent
14a0c1db86
commit
9569a3eefb
5 changed files with 4 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -25,7 +25,7 @@ You should have received a copy of the GNU General Public License
|
|||
|
||||
namespace ShareX.NativeMessagingHost
|
||||
{
|
||||
public class NativeMessageInput
|
||||
public class NativeMessagingInput
|
||||
{
|
||||
public string URL { get; set; }
|
||||
public string Text { get; set; }
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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")]
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue