Skip to content

Commit

Permalink
slight fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
pathtofile committed Dec 16, 2020
1 parent c23440f commit fd9b9ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppl_runner/ppl_runner.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fd9b9ce

Please sign in to comment.