From fd9b9ce089d1db1828db607b832e4353ee0bc3cf Mon Sep 17 00:00:00 2001 From: pathtofile Date: Wed, 16 Dec 2020 19:06:48 +1100 Subject: [PATCH] slight fixup --- ppl_runner/ppl_runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppl_runner/ppl_runner.c b/ppl_runner/ppl_runner.c index 889ec8f..d4ccfe2 100644 --- a/ppl_runner/ppl_runner.c +++ b/ppl_runner/ppl_runner.c @@ -61,7 +61,6 @@ DWORD install_service() wcscpy_s(serviceCMD + serviceCMDLen, MAX_BUF_SIZE - serviceCMDLen, L" service"); // Add PPL option - info.dwLaunchProtected = SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT; hService = CreateService( hSCManager, SERVICE_NAME, @@ -91,6 +90,7 @@ DWORD install_service() } // Mark service as protected + info.dwLaunchProtected = SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT; if (ChangeServiceConfig2(hService, SERVICE_CONFIG_LAUNCH_PROTECTED, &info) == FALSE) { retval = GetLastError(); log_message(L"[PPL_RUNNER] install_service: ChangeServiceConfig2 Error: %d\n", retval);