X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=conproc.c;h=ccbb849c9c2a44c0183521a988af2dc80b86bc2e;hp=30ac3339a1e6874e3c709bb7c9bf1eac1fe4abcf;hb=7e8a101c81015e0bdab9fd78704f38f39d5a8ffe;hpb=45a612bd1e80c5fe53c1d8cbc3b6e9781797b4f6 diff --git a/conproc.c b/conproc.c index 30ac3339..ccbb849c 100644 --- a/conproc.c +++ b/conproc.c @@ -19,10 +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; @@ -38,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); @@ -59,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; } @@ -71,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; } @@ -114,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; } @@ -261,7 +262,7 @@ BOOL WriteText (LPCTSTR szText) } -int CharToCode (char c) +int CharToCode (int c) { char upper;