Problems on accessing Windows network resources
Pierre A. Humblet
Mon Jul 14 17:32:00 GMT 2003
Corinna Vinschen wrote:
> Hi Pierre,
> I've applied this patch. I've just changed the code to use
> INVALID_HANDLE_VALUE instead of NULL throughout.
I was going to send you the modified patch tonight, with some extra
After researching the issue, all cygwin routines I could find (not
only those ntsec related) initialize their handles to NULL, except
subauth() and create_token(). Those exceptions make sense because
those two must return INVALID_HANDLE_VALUE on error.
The patch itself avoids initializing any handle (avoiding ambiguity),
except the usual automatic initialization to 0 of the cygheap stuff.
Do you want my patch anyway (reverting what you have just applied),
or do we leave things as they are?
More information about the Cygwin-patches