diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-05-23 11:59:37 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-05-23 11:59:37 +0000 |
commit | 7075440208ba88e3b7ac51daf4aa442cacbf2429 (patch) | |
tree | 80b294b52d337e644b121aa37f0a20abedccf0c1 /winsup/cygwin/shared.cc | |
parent | 1870c688063bc20ae29a9b2744471705d790fe47 (diff) | |
download | newlib-7075440208ba88e3b7ac51daf4aa442cacbf2429.zip newlib-7075440208ba88e3b7ac51daf4aa442cacbf2429.tar.gz newlib-7075440208ba88e3b7ac51daf4aa442cacbf2429.tar.bz2 |
* shared.cc (open_shared): Fix comments. Fix a condition which has
been overlooked to revert to its old state in change from 2008-04-18.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r-- | winsup/cygwin/shared.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index 760c332..b2a1b68 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -165,12 +165,11 @@ open_shared (const char *name, int n, HANDLE& shared_h, DWORD size, if (!shared && addr) { - /* Probably win95, so try without specifying the address. */ shared = (shared_info *) MapViewOfFileEx (shared_h, FILE_MAP_READ|FILE_MAP_WRITE, 0, 0, 0, NULL); #ifdef DEBUGGING - system_printf ("relocating shared object %s(%d) from %p to %p on Windows NT", name, n, addr, shared); + system_printf ("relocating shared object %s(%d) from %p to %p", name, n, addr, shared); #endif offsets[0] = 0; } @@ -178,7 +177,7 @@ open_shared (const char *name, int n, HANDLE& shared_h, DWORD size, if (!shared) api_fatal ("MapViewOfFileEx '%s'(%p), %E. Terminating.", mapname, shared_h); - if (m == SH_USER_SHARED && offsets[0]) + if (m == SH_CYGWIN_SHARED && offsets[0]) { ptrdiff_t delta = (caddr_t) shared - (caddr_t) off_addr (0); offsets[0] = (caddr_t) shared - (caddr_t) cygwin_hmodule; |