aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/shared.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-01-30 08:10:04 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-01-30 08:10:04 +0000
commit9928a7e10849e86811d23b66aee38ccc5be634d5 (patch)
treebef4c16fcf9efd741aeca609b98016bb30886213 /winsup/cygwin/shared.cc
parent82ea92f3ea672787464692d84aed030483a8f2db (diff)
downloadnewlib-9928a7e10849e86811d23b66aee38ccc5be634d5.zip
newlib-9928a7e10849e86811d23b66aee38ccc5be634d5.tar.gz
newlib-9928a7e10849e86811d23b66aee38ccc5be634d5.tar.bz2
* pinfo.cc (pinfo::init): Use INVALID_HANDLE_VALUE instead of
explicit cast (HANDLE) 0xffffffff. * shared.cc (open_shared): Ditto.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r--winsup/cygwin/shared.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc
index 43c4893..3c99e25 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,