From 156b3acd9bdc0ab5a97c5ad0d6008f8b5365c488 Mon Sep 17 00:00:00 2001 From: Syrone Wong Date: Thu, 22 Sep 2016 09:45:08 +0800 Subject: [PATCH] Misc Signed-off-by: Syrone Wong --- shadowsocks-csharp/Util/ProcessManagement/Job.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks-csharp/Util/ProcessManagement/Job.cs b/shadowsocks-csharp/Util/ProcessManagement/Job.cs index 94443407..098a3470 100644 --- a/shadowsocks-csharp/Util/ProcessManagement/Job.cs +++ b/shadowsocks-csharp/Util/ProcessManagement/Job.cs @@ -14,7 +14,7 @@ namespace Shadowsocks.Util.ProcessManagement [DllImport("kernel32.dll", CharSet = CharSet.Unicode)] private static extern IntPtr CreateJobObject(IntPtr a, string lpName); - [DllImport("kernel32.dll")] + [DllImport("kernel32.dll", SetLastError = true)] private static extern bool SetInformationJobObject(IntPtr hJob, JobObjectInfoType infoType, IntPtr lpJobObjectInfo, UInt32 cbJobObjectInfoLength); [DllImport("kernel32.dll", SetLastError = true)]