mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 11:50:17 +00:00
HANDLER_ROUTINE is in fact PHANDLER_ROUTINE.
This commit is contained in:
parent
45cc1430e9
commit
04717f0d80
|
@ -18,7 +18,7 @@
|
|||
#define ENABLE_WRAP_AT_EOL_OUTPUT 0x02
|
||||
|
||||
|
||||
typedef BOOL HANDLER_ROUTINE(WORD);
|
||||
typedef BOOL (WINAPI *PHANDLER_ROUTINE)(DWORD);
|
||||
|
||||
/* Attributes flags: */
|
||||
|
||||
|
@ -222,7 +222,7 @@ BOOL WINAPI ScrollConsoleScreenBufferW( HANDLE hConsoleOutput, LPSMALL_RECT lpSc
|
|||
#define ScrollConsoleScreenBuffer WINELIB_NAME_AW(ScrollConsoleScreenBuffer)
|
||||
BOOL WINAPI SetConsoleActiveScreenBuffer( HANDLE hConsoleOutput);
|
||||
BOOL WINAPI SetConsoleCP(UINT cp);
|
||||
BOOL WINAPI SetConsoleCtrlHandler( HANDLER_ROUTINE *func, BOOL add);
|
||||
BOOL WINAPI SetConsoleCtrlHandler( PHANDLER_ROUTINE func, BOOL add);
|
||||
BOOL WINAPI SetConsoleCursorInfo( HANDLE hcon, LPCONSOLE_CURSOR_INFO cinfo);
|
||||
BOOL WINAPI SetConsoleMode( HANDLE hcon, DWORD mode);
|
||||
BOOL WINAPI SetConsoleOutputCP(UINT cp);
|
||||
|
|
|
@ -364,10 +364,10 @@ static BOOL read_console_input( HANDLE handle, LPINPUT_RECORD buffer, DWORD coun
|
|||
* This doesn't yet matter, since these handlers are not yet called...!
|
||||
*/
|
||||
static unsigned int console_ignore_ctrl_c = 0;
|
||||
static HANDLER_ROUTINE *handlers[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
|
||||
BOOL WINAPI SetConsoleCtrlHandler( HANDLER_ROUTINE *func, BOOL add )
|
||||
static PHANDLER_ROUTINE handlers[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
|
||||
BOOL WINAPI SetConsoleCtrlHandler( PHANDLER_ROUTINE func, BOOL add )
|
||||
{
|
||||
unsigned int alloc_loop = sizeof(handlers)/sizeof(HANDLER_ROUTINE *);
|
||||
unsigned int alloc_loop = sizeof(handlers)/sizeof(PHANDLER_ROUTINE);
|
||||
unsigned int done = 0;
|
||||
FIXME("(%p,%i) - no error checking or testing yet\n", func, add);
|
||||
if (!func)
|
||||
|
|
Loading…
Reference in a new issue