[PATCH 0/1] MR10827: wineboot: Run services.exe from c:\windows\system32 directory.
A .Net based service detects that it's running as a service by checking if its current directory is system32, otherwise the service runs in some debugging console based mode. Service processes created by services.exe inherit its current directory, so it's enough to make sure that services.exe runs from c:\windows\system32. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10827
From: Dmitry Timoshkov <dmitry@baikal.ru> A .Net based service detects that it's running as a service by checking if its current directory is system32, otherwise the service runs in some debugging console based mode. Service processes created by services.exe inherit its current directory, so it's enough to make sure that services.exe runs from c:\windows\system32. Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> --- programs/wineboot/wineboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index 7c814d19826..6ffcbe1266c 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -1431,7 +1431,7 @@ static BOOL start_services_process(void) HANDLE wait_handles[2]; if (!CreateProcessW(L"C:\\windows\\system32\\services.exe", NULL, - NULL, NULL, TRUE, DETACHED_PROCESS, NULL, NULL, &si, &pi)) + NULL, NULL, TRUE, DETACHED_PROCESS, NULL, L"C:\\windows\\system32", &si, &pi)) { WINE_ERR("Couldn't start services.exe: error %lu\n", GetLastError()); return FALSE; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10827
participants (2)
-
Dmitry Timoshkov -
Dmitry Timoshkov (@dmitry)