From 93d97424df1d2bc258da6f717ab2c42d12a77ba1 Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 26 Apr 2021 03:00:54 -0400 Subject: [PATCH] [host] service: disable handle inheritance when spawning host We don't actually have any handles that should be inherited, so specifying TRUE for bInheritHandles to CreateProcessAsUserA is pointless. Furthermore, according to MSDN, "[y]ou cannot inherit handles across sessions," and we are spawning the host in a different session, so this is even more pointless. --- host/platform/Windows/src/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/src/service.c b/host/platform/Windows/src/service.c index a49753a6..e668a0b3 100644 --- a/host/platform/Windows/src/service.c +++ b/host/platform/Windows/src/service.c @@ -312,7 +312,7 @@ void Launch(void) NULL, NULL, NULL, - TRUE, + FALSE, flags, NULL, os_getDataPath(),