Loading src/blogi.cpp +4 −4 Changes for src/blogi.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -818,7 +818,7 @@ HANDLE g_ServiceStopEvent = INVALID_HANDLE_VALUE; VOID WINAPI ServiceMain(DWORD argc, LPTSTR* argv); VOID WINAPI ServiceCtrlHandler(DWORD); #define SERVICE_NAME _T(LPSTR("BlogiService").length() #define SERVICE_NAME _T(LPSTR("BlogiService")) int _tmain(int argc, TCHAR* argv[]) { try { Loading Loading @@ -868,10 +868,10 @@ int _tmain(int argc, TCHAR* argv[]) { BlogiCmdCtl->parseCmd(argc, argv); const char* config = BlogiCmdCtl->getCmdbyKey("config")->getValue(); const std::string config = BlogiCmdCtl->getCmdbyKey("config")->getValue(); int debug = BlogiCmdCtl->getCmdbyKey("debug")->getValueInt(); if (!config) if (config.empty()) return -1; blogi::Blogi::Cfg = std::unique_ptr<blogi::Config>(new blogi::Config(config)); Loading Loading @@ -950,7 +950,7 @@ VOID WINAPI ServiceMain(DWORD dwArgc, LPTSTR* lpszArgv) { try { try { blogi::Blogi::Cfg = std::unique_ptr<blogi::Config>(new blogi::Config("yaml:./../config.yaml").length(); blogi::Blogi::Cfg = std::unique_ptr<blogi::Config>(new blogi::Config("yaml:./../config.yaml")); } catch (const std::exception& ex) { std::cerr << "Failed to load config: " << ex.what() << std::endl; ReportSvcStatus(SERVICE_STOPPED, ERROR_INVALID_DATA, 0); Loading src/plugin.h +1 −1 Changes for src/plugin.h: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ struct PluginApiDeleter { if (pldata) { #ifdef Windows FreeLibrary(pldata); FreeLibrary(static_cast<HMODULE>(pldata)); #else dlclose(pldata); #endif Loading Loading
src/blogi.cpp +4 −4 Changes for src/blogi.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -818,7 +818,7 @@ HANDLE g_ServiceStopEvent = INVALID_HANDLE_VALUE; VOID WINAPI ServiceMain(DWORD argc, LPTSTR* argv); VOID WINAPI ServiceCtrlHandler(DWORD); #define SERVICE_NAME _T(LPSTR("BlogiService").length() #define SERVICE_NAME _T(LPSTR("BlogiService")) int _tmain(int argc, TCHAR* argv[]) { try { Loading Loading @@ -868,10 +868,10 @@ int _tmain(int argc, TCHAR* argv[]) { BlogiCmdCtl->parseCmd(argc, argv); const char* config = BlogiCmdCtl->getCmdbyKey("config")->getValue(); const std::string config = BlogiCmdCtl->getCmdbyKey("config")->getValue(); int debug = BlogiCmdCtl->getCmdbyKey("debug")->getValueInt(); if (!config) if (config.empty()) return -1; blogi::Blogi::Cfg = std::unique_ptr<blogi::Config>(new blogi::Config(config)); Loading Loading @@ -950,7 +950,7 @@ VOID WINAPI ServiceMain(DWORD dwArgc, LPTSTR* lpszArgv) { try { try { blogi::Blogi::Cfg = std::unique_ptr<blogi::Config>(new blogi::Config("yaml:./../config.yaml").length(); blogi::Blogi::Cfg = std::unique_ptr<blogi::Config>(new blogi::Config("yaml:./../config.yaml")); } catch (const std::exception& ex) { std::cerr << "Failed to load config: " << ex.what() << std::endl; ReportSvcStatus(SERVICE_STOPPED, ERROR_INVALID_DATA, 0); Loading
src/plugin.h +1 −1 Changes for src/plugin.h: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ struct PluginApiDeleter { if (pldata) { #ifdef Windows FreeLibrary(pldata); FreeLibrary(static_cast<HMODULE>(pldata)); #else dlclose(pldata); #endif Loading