Simon Tatham
f0a9c33f25
The Windows HANDLE type, despite being a `void *', does not actually
...
behave like a pointer. In particular, the right thing to set a
HANDLE to to indicate that it's invalid is INVALID_HANDLE_VALUE, not
NULL. Crack down on sloppy use of NULL HANDLEs across all Windows
code.
(There is one oddity, which is that {Create,Open}FileMapping are
documented to return a NULL HANDLE instead of INVALID_HANDLE_VALUE
on failure. Shrug. If MS want to be inconsistent, I suppose I have
to live with it.)
[originally from svn r6833]
2006-08-29 18:32:44 +00:00
..
2004-11-16 22:14:56 +00:00
2005-04-06 22:16:42 +00:00
2006-01-08 18:18:11 +00:00
2004-11-16 22:14:56 +00:00
2005-10-04 14:13:28 +00:00
2004-12-16 15:01:43 +00:00
2005-10-04 14:13:28 +00:00
2005-10-04 14:13:28 +00:00
2004-11-16 22:14:56 +00:00
2006-02-27 22:27:49 +00:00
2005-04-06 22:16:42 +00:00
2005-10-04 14:13:28 +00:00
2004-11-16 22:14:56 +00:00
2004-11-16 22:14:56 +00:00
2005-04-06 22:16:42 +00:00
2006-01-08 18:18:11 +00:00
2005-10-04 14:13:28 +00:00
2005-10-04 14:13:28 +00:00
2006-04-23 18:26:03 +00:00
2006-01-08 18:18:11 +00:00
2004-11-16 22:14:56 +00:00
2006-04-23 18:26:03 +00:00
2006-01-08 18:18:11 +00:00
2006-08-29 09:18:09 +00:00
2006-04-23 18:26:03 +00:00
2006-08-28 10:35:12 +00:00
2006-08-28 10:35:12 +00:00
2006-08-29 09:18:09 +00:00
2006-08-29 18:32:44 +00:00
2006-08-28 18:26:50 +00:00
2006-08-28 10:35:12 +00:00
2005-02-27 23:57:17 +00:00
2006-08-26 08:37:42 +00:00
2005-04-22 15:47:28 +00:00
2005-08-10 18:31:24 +00:00
2005-10-30 15:16:42 +00:00
2006-08-29 18:32:44 +00:00
2006-08-28 17:47:43 +00:00
2004-11-16 22:14:56 +00:00
2006-08-28 11:13:56 +00:00
2006-08-29 18:32:44 +00:00
2006-08-29 18:32:44 +00:00
2005-05-20 21:52:07 +00:00
2006-08-29 09:18:09 +00:00
2006-04-23 18:26:03 +00:00
2004-11-16 22:14:56 +00:00
2006-08-27 09:53:34 +00:00