diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-01-30 11:10:04 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-01-30 11:10:04 +0300 |
commit | 9928a7e10849e86811d23b66aee38ccc5be634d5 (patch) | |
tree | bef4c16fcf9efd741aeca609b98016bb30886213 /winsup/cygwin | |
parent | 82ea92f3ea672787464692d84aed030483a8f2db (diff) |
* pinfo.cc (pinfo::init): Use INVALID_HANDLE_VALUE instead of
explicit cast (HANDLE) 0xffffffff.
* shared.cc (open_shared): Ditto.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.cc | 4 | ||||
-rw-r--r-- | winsup/cygwin/shared.cc | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3395c3438..26d6a1447 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +Tue Jan 30 8:55:00 2001 Corinna Vinschen <corinna@vinschen.de> + + * pinfo.cc (pinfo::init): Use INVALID_HANDLE_VALUE instead of + explicit cast (HANDLE) 0xffffffff. + * shared.cc (open_shared): Ditto. + Mon Jan 29 17:15:22 2001 Bill Hegardt <bill@troyxcd.com> * fhandler_serial.cc (raw_write): Use local copy of OVERLAPPED diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index f9b045710..85214407d 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -166,8 +166,8 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h) } else { - h = CreateFileMapping ((HANDLE) 0xffffffff, &sec_all_nih, - PAGE_READWRITE, 0, mapsize, mapname); + h = CreateFileMapping (INVALID_HANDLE_VALUE, &sec_all_nih, + PAGE_READWRITE, 0, mapsize, mapname); created = h && GetLastError () != ERROR_ALREADY_EXISTS; } diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index 43c4893ef..3c99e2518 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -66,7 +66,7 @@ open_shared (const char *name, HANDLE &shared_h, DWORD size, void *addr) TRUE, mapname); } if (!shared_h && - !(shared_h = CreateFileMappingA ((HANDLE) 0xffffffff, + !(shared_h = CreateFileMappingA (INVALID_HANDLE_VALUE, &sec_all, PAGE_READWRITE, 0, |