Skip to content
Snippets Groups Projects
Commit 5a67738c authored by deuce's avatar deuce
Browse files

Various fixes for Turbo C++

Mostly they seem to be using unsigned long rather than DWORD for Win32 API
calls.
parent 12e00200
No related branches found
No related tags found
No related merge requests found
......@@ -517,7 +517,7 @@ void win32_resume(void)
SetConsoleMode(h, conmode);
}
static BOOL WINAPI ControlHandler(DWORD CtrlType)
static BOOL WINAPI ControlHandler(unsigned long CtrlType)
{
return TRUE;
}
......
......@@ -844,7 +844,7 @@ void recycle_handler(int type)
#if defined(_WIN32)
BOOL WINAPI ControlHandler(DWORD CtrlType)
BOOL WINAPI ControlHandler(unsigned long CtrlType)
{
break_handler((int)CtrlType);
return TRUE;
......
......@@ -1044,7 +1044,7 @@ void cleanup(void)
}
#if defined(_WIN32)
BOOL WINAPI ControlHandler(DWORD CtrlType)
BOOL WINAPI ControlHandler(unsigned long CtrlType)
{
terminated=TRUE;
return TRUE;
......
......@@ -227,7 +227,7 @@ void break_handler(int type)
}
#if defined(_WIN32)
BOOL WINAPI ControlHandler(DWORD CtrlType)
BOOL WINAPI ControlHandler(unsigned long CtrlType)
{
break_handler((int)CtrlType);
return TRUE;
......
......@@ -385,13 +385,13 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
HANDLE wrinpipe;
PROCESS_INFORMATION process_info;
DWORD hVM;
DWORD rd;
unsigned long rd;
DWORD wr;
DWORD len;
unsigned long len;
DWORD avail;
DWORD dummy;
DWORD msglen;
DWORD retval;
unsigned long dummy;
unsigned long msglen;
unsigned long retval;
DWORD last_error;
DWORD loop_since_io=0;
struct tm tm;
......@@ -877,7 +877,7 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
len=avail;
while(rd<len) {
DWORD waiting=0;
unsigned long waiting=0;
if(use_pipes)
PeekNamedPipe(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment