From e912bdd302d75fe74e4b32a42ebac4c46894cf1b Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 1 May 2021 17:20:13 +0200 Subject: [PATCH] Also make sure that all group host threads exit I actually don't know if this is necessary, but it was necessary for individually hosted plugins, so presumably it's also needed here. --- src/wine-host/group-host.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wine-host/group-host.cpp b/src/wine-host/group-host.cpp index 9b214ff2..1bac341c 100644 --- a/src/wine-host/group-host.cpp +++ b/src/wine-host/group-host.cpp @@ -89,4 +89,8 @@ __cdecl return 0; } + + // Like in `individual-host.cpp`, this shouldn't be needed, but sometimes + // with Wine background threads will be kept alive while this process exits + TerminateProcess(GetCurrentProcess(), 0); }