Commit f1a76d56 authored by jan.koester's avatar jan.koester
Browse files

win fxies

parent a0a4cc98
Loading
Loading
Loading
Loading
+4 −4
Changes for src/blogi.cpp: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -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 {
@@ -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));
@@ -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);
+1 −1
Changes for src/plugin.h: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ struct PluginApiDeleter {

            if (pldata) {
#ifdef  Windows
                FreeLibrary(pldata);
                FreeLibrary(static_cast<HMODULE>(pldata));
#else
                dlclose(pldata);
#endif