Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-01-30 11:10:04 +0300
committerCorinna Vinschen <corinna@vinschen.de>2001-01-30 11:10:04 +0300
commit9928a7e10849e86811d23b66aee38ccc5be634d5 (patch)
treebef4c16fcf9efd741aeca609b98016bb30886213 /winsup/cygwin/pinfo.cc
parent82ea92f3ea672787464692d84aed030483a8f2db (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/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc4
1 files changed, 2 insertions, 2 deletions
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;
}