services: Start services detached from console.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-03-17 08:27:16 +01:00 committed by Alexandre Julliard
parent 043a0ddf08
commit 7b65ef3afb
1 changed files with 1 additions and 1 deletions

View File

@ -1094,7 +1094,7 @@ found:
process->use_count++;
service_unlock(service_entry);
r = CreateProcessW(NULL, path, NULL, NULL, FALSE, CREATE_UNICODE_ENVIRONMENT, environment, NULL, &si, &pi);
r = CreateProcessW(NULL, path, NULL, NULL, FALSE, CREATE_UNICODE_ENVIRONMENT | DETACHED_PROCESS, environment, NULL, &si, &pi);
HeapFree(GetProcessHeap(), 0, path);
if (!r)
{