Re: [PATCH] Re: help fixing up SetConsoleCtrlHandler()

2004-04-15 Thread Dimitrie O. Paun
On Thu, 15 Apr 2004, Peter Riocreux wrote: > I can't see anyone relying on using something they know to be > wrong. *That* would also be madness Right. And hence our stance. > I have turned it into a trace. > > Patch below. Good. Now, for inclusion in the tree, you need to submit it to [EM

Re: [PATCH] Re: help fixing up SetConsoleCtrlHandler()

2004-04-15 Thread Peter Riocreux
"Dimitrie O. Paun" <[EMAIL PROTECTED]> writes: > On Thu, 15 Apr 2004, Peter Riocreux wrote: > >> I don't know, I just had thought that Wine was attempting to be >> bug-for-bug compatible, and assumed that part of that was honouring >> all the restrictions on usage of functions and how these varied

Re: [PATCH] Re: help fixing up SetConsoleCtrlHandler()

2004-04-15 Thread Dimitrie O. Paun
On Thu, 15 Apr 2004, Peter Riocreux wrote: > I don't know, I just had thought that Wine was attempting to be > bug-for-bug compatible, and assumed that part of that was honouring > all the restrictions on usage of functions and how these varied > between versions. We are not *that* compatible. it

Re: [PATCH] Re: help fixing up SetConsoleCtrlHandler()

2004-04-15 Thread Peter Riocreux
"Dimitrie O. Paun" <[EMAIL PROTECTED]> writes: > On April 15, 2004 7:58 am, Peter Riocreux wrote: >> Here is my first cut. >> >> Remember that this is my first patch, so go easy on me with he >> flamethrowers. I know the indenting isn't quite right. > > The formatting doesn't seem too bad, but the

Re: [PATCH] Re: help fixing up SetConsoleCtrlHandler()

2004-04-15 Thread Dimitrie O. Paun
On April 15, 2004 7:58 am, Peter Riocreux wrote: > Here is my first cut. > > Remember that this is my first patch, so go easy on me with he > flamethrowers. I know the indenting isn't quite right. The formatting doesn't seem too bad, but the format is wrong. Please use uniffied diff (-u): http

[PATCH] Re: help fixing up SetConsoleCtrlHandler()

2004-04-15 Thread Peter Riocreux
Here is my first cut. Remember that this is my first patch, so go easy on me with he flamethrowers. I know the indenting isn't quite right. Probably easiest to review by comparing old and new rather than looking at old and patch. Comments, especially regarding more appropriate error values to u

Re: help fixing up SetConsoleCtrlHandler()

2004-04-14 Thread Juan Lang
Hi Peter, Peter wrote: > 1) If I am using SetLastError, it is not obvious to > me what error values I should be using there. They should be a Win32 error message, the ones defined in winerror.h that aren't HRESULTs (so, lowish values, less then 32000 or so, not 0x80070002-ish). > 2) Can I assume

help fixing up SetConsoleCtrlHandler()

2004-04-14 Thread Peter Riocreux
Having seen a lot of messages like: - fixme:console:SetConsoleCtrlHandler (0x41a8af,1) - no error checking or testing yet - lately, I thought I would actually see if I could fix it up and remove the FIXME. It is in dlls/kernel/console.c, and the MSDN reference is