From: Eric Bollengier Date: Sat, 12 Jul 2008 16:01:13 +0000 (+0000) Subject: ebl Fix socket usage on win32 X-Git-Tag: Release-3.0.0~1157 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4e09fdec0fe2bfe4d251b2854ff6e4837179010f;p=bacula%2Fbacula ebl Fix socket usage on win32 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7361 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/main.cpp b/bacula/src/qt-console/main.cpp index 6e471829f7..bfb4edc32b 100644 --- a/bacula/src/qt-console/main.cpp +++ b/bacula/src/qt-console/main.cpp @@ -135,6 +135,9 @@ int main(int argc, char *argv[]) usage(); } + OSDependentInit(); + WSA_Init(); /* Initialize Windows sockets */ + if (configfile == NULL) { configfile = bstrdup(CONFIG_FILE); } @@ -158,6 +161,7 @@ int main(int argc, char *argv[]) void terminate_console(int /*sig*/) { +// WSA_Cleanup(); /* TODO: check when we have to call it */ exit(0); }