aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/embeddable-dll-service/csharp/Service.cs
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-12-23 15:58:45 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-01-04 13:33:10 +0100
commita9554a29e92e77161de64641554bf16a4dbe0cf4 (patch)
tree1507f3c047975a6bf9c84b8f3e426201a5e03063 /embeddable-dll-service/csharp/Service.cs
parentbuild: update to go 1.16 beta1 (diff)
downloadwireguard-windows-a9554a29e92e77161de64641554bf16a4dbe0cf4.tar.xz
wireguard-windows-a9554a29e92e77161de64641554bf16a4dbe0cf4.zip
embeddable-dll-service: fix code block types
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--embeddable-dll-service/csharp/Service.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embeddable-dll-service/csharp/Service.cs b/embeddable-dll-service/csharp/Service.cs
index 3b438d24..0310d693 100644
--- a/embeddable-dll-service/csharp/Service.cs
+++ b/embeddable-dll-service/csharp/Service.cs
@@ -51,7 +51,7 @@ namespace Tunnel
Win32.CloseServiceHandle(service);
Remove(configFile);
}
- service = Win32.CreateService(scm, shortName, longName, Win32.ServiceAccessRights.AllAccess, Win32.ServiceType.Win32OwnProcess, Win32.ServiceStartType.Demand, Win32.ServiceError.Normal, pathAndArgs, null, IntPtr.Zero, "Nsi", null, null);
+ service = Win32.CreateService(scm, shortName, longName, Win32.ServiceAccessRights.AllAccess, Win32.ServiceType.Win32OwnProcess, Win32.ServiceStartType.Demand, Win32.ServiceError.Normal, pathAndArgs, null, IntPtr.Zero, "Nsi\0TcpIp", null, null);
if (service == IntPtr.Zero)
throw new Win32Exception(Marshal.GetLastWin32Error());
try