X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=conproc.c;h=ccbb849c9c2a44c0183521a988af2dc80b86bc2e;hb=5297b46dcb238b0e738e2bad7ea5b34413d361a8;hp=560be1f12f1b7e42b831f318bfd20e75f9c12a17;hpb=cc3c823ce3baf63d6d8f216c3bf4df88496eb231;p=xonotic%2Fdarkplaces.git diff --git a/conproc.c b/conproc.c index 560be1f1..ccbb849c 100644 --- a/conproc.c +++ b/conproc.c @@ -19,9 +19,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // conproc.c +#include "quakedef.h" + #include +#include #include "conproc.h" -#include "quakedef.h" HANDLE heventDone; HANDLE hfileBuffer; @@ -37,7 +39,7 @@ BOOL GetScreenBufferLines (int *piLines); BOOL SetScreenBufferLines (int iLines); BOOL ReadText (LPTSTR pszText, int iBeginLine, int iEndLine); BOOL WriteText (LPCTSTR szText); -int CharToCode (char c); +int CharToCode (int c); BOOL SetConsoleCXCY(HANDLE hStdout, int cx, int cy); @@ -58,7 +60,7 @@ void InitConProc (HANDLE hFile, HANDLE heventParent, HANDLE heventChild) if (!heventDone) { - Con_SafePrintf ("Couldn't create heventDone\n"); + Con_Print("Couldn't create heventDone\n"); return; } @@ -70,7 +72,7 @@ void InitConProc (HANDLE hFile, HANDLE heventParent, HANDLE heventChild) &dwID)) { CloseHandle (heventDone); - Con_SafePrintf ("Couldn't create QHOST thread\n"); + Con_Print("Couldn't create QHOST thread\n"); return; } @@ -113,7 +115,7 @@ DWORD RequestProc (DWORD dwNichts) // hfileBuffer is invalid. Just leave. if (!pBuffer) { - Con_SafePrintf ("Invalid hfileBuffer\n"); + Con_Print("Invalid hfileBuffer\n"); break; } @@ -260,7 +262,7 @@ BOOL WriteText (LPCTSTR szText) } -int CharToCode (char c) +int CharToCode (int c) { char upper;