tWindows server now displays text properly (and echoes standard input) - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit dac4fb5018c57a1bf3cd6bc6d4172489ee3c3a28
parent 4dc47805d7db3ceee8a48e177d75f15e60619c52
Author: Ben Webb 
Date:   Mon,  9 Apr 2001 23:06:20 +0000

Windows server now displays text properly (and echoes standard input)


Diffstat:
  M src/winmain.c                       |       2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/winmain.c b/src/winmain.c
t@@ -70,7 +70,6 @@ int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,
    split=g_strsplit(lpszCmdParam," ",0);
    argc=0;
    while (split[argc]) argc++;
-// g_set_print_handler(Win32PrintFunc);
    HandleCmdLine(argc,split);
    g_strfreev(split);
    if (WantVersion || WantHelp) {
t@@ -85,6 +84,7 @@ int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,
          SetConsoleTitle(_("dopewars server"));
          g_log_set_handler(NULL,G_LOG_LEVEL_MESSAGE|G_LOG_LEVEL_WARNING,
                            ServerLogMessage,NULL);
+         g_set_print_handler(Win32PrintFunc);
          newterm(NULL,NULL,NULL);
          ServerLoop();
       } else if (WantedClient==CLIENT_CURSES) {