[PATCH] cmd: Add basic handling of Ctrl-C

Hugh McMaster hugh.mcmaster at outlook.com
Fri Mar 27 05:42:55 CDT 2015


On Thu, 26 Mar 2015 15:15:34 +0100, Stefan Dösinger wrote:
> Am 2015-03-26 um 13:46 schrieb Hugh McMaster:
> > The PHANDLER_ROUTINE is a pointer to the function handler. MSDN's 
> > own example [1] on installing a Ctrl handler uses a cast.
> > 
> > Otherwise, what would you suggest?
> If the function signature (including calling convention) matches the
> one SetConsoleCtrlHandler expects the compiler should accept it
> without a cast and without a warning.
> 
> In your patch you should probably use WINAPI for console_ctrl_handler.

The compiler accepted "BOOL WINAPI console_ctrl_handler" without warnings.

Thanks. I'll send a new patch.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150327/b590302c/attachment.html>


More information about the wine-devel mailing list