fix comment to reflect reality

pull/2045/head
Jeff Becker 2 years ago
parent 7ddad87dbf
commit a7f3c3595b
No known key found for this signature in database
GPG Key ID: 025C02EE3A092F2D

@ -687,10 +687,9 @@ win32_daemon_entry(DWORD, LPTSTR* argv)
// Report initial status to the SCM
ReportSvcStatus(SERVICE_START_PENDING, NO_ERROR, 3000);
// SCM calls this function with different args than a normal "main" expects,
// but lokinet_main expects normal args, so set them here instead. At the
// moment we are not passing any args to lokinet_main this way anyway though.
// we hard code the args to lokinet_main.
// we yoink argv[0] (lokinet.exe path) and pass in the new args.
std::array args = {
reinterpret_cast<char*>(argv[0]),
reinterpret_cast<char*>(strdup("c:\\programdata\\lokinet\\lokinet.ini")),

Loading…
Cancel
Save