Commit 88c9eb3e authored by jan.koester's avatar jan.koester
Browse files

small fixes

parent 39a0f1ce
Loading
Loading
Loading
Loading
+1 −1
Changes for plugins/media/media.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ namespace blogi {
                    if (asctime_s(ttmp, sizeof(ttmp), &time_info) == 0) {
                        // The rest of the code is portable
                        sql2 << "INSERT INTO media_albums (name,owner,created) VALUES ('" << dbpp::SQL::escaped(sbuf, albumname.c_str()) << "','" << id << "','" << ttmp << "')";
                        Args->database[tid].exec(sql2, res2);
                        Args->database[tid]->exec(sql2, res2);
                    }
                }
            }
+2 −2
Changes for src/blogi.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -844,7 +844,7 @@ int _tmain(int argc, TCHAR* argv[]) {
            if (!config)
                return -1;

            blogi::Blogi::Cfg = std::shared_ptr<blogi::Config>(new blogi::Config(config));
            blogi::Blogi::Cfg = std::unique_ptr<blogi::Config>(new blogi::Config(config));

            HttpConD blogiD(debug);
        }
@@ -920,7 +920,7 @@ VOID WINAPI ServiceMain(DWORD dwArgc, LPTSTR* lpszArgv) {
    try {

        try {
            blogi::Blogi::Cfg = std::shared_ptr<blogi::Config>(new blogi::Config("yaml:./../config.yaml"));
            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);