Simple arguments check

Mike Hearn mike at theoretic.com
Wed Dec 31 14:29:05 CST 2003


n Wed, 2003-12-31 at 17:36, Dimitrie O. Paun wrote:
> Maybe because crashing is the right thing to do in many cases,

Why? I'd have thought failing the API call would be more sensible, or
doing what GTK does and printing assertion failures. But hey. Crashing
is what Win32 does, so it's what we do. I know the answer really :)

>  but it
> looks like MS really likes defensive programming and does all sort of
> checks it shouldn't do (and catching all sort of exceptions it shouldn't
> catch). 

Some APIs even correct mistakes you make for you!





More information about the wine-devel mailing list