This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cleaning up for NULL handles


On Fri, Sep 20, 2002 at 07:28:28PM -0400, Pierre A. Humblet wrote:
>The patch below takes care of the possibility that CreateFile might
>return a 0 handle, in the area that I touched recently.

I'm pretty sure that CreateFile does not return a NULL handle as there
are Windows API functions that interpret a NULL handle as indicating
a default parameter.

In fact, once such function is CreateFile itself.

So, although the fact that CreateFile will return INVALID_HANDLE_VALUE
on error is documented, I think we can safely assume that CreateFile
will never return a NULL handle either.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]