* environ.cc (spenv::force_into_environment): Rename from add_always.

(spenv::add_if_exists): Rename from force.
(build_env): Accommodate name changes.  Make sure that stuff that is always
supposed to be in the environment is actually added to the environment.
* shared.cc (open_shared): Restore VirtualFree eliminated by 2005-04-28 change.
This commit is contained in:
Christopher Faylor
2005-04-30 17:07:05 +00:00
parent 06e0dc9a46
commit f0b14f146e
3 changed files with 22 additions and 8 deletions

View File

@ -84,7 +84,10 @@ open_shared (const char *name, int n, HANDLE& shared_h, DWORD size,
|| !wincap.needs_memory_protection () && offsets[0])
addr = NULL;
else
addr = offsets[m];
{
addr = offsets[m];
(void) VirtualFree (addr, 0, MEM_RELEASE);
}
if (shared_h)
m = SH_JUSTOPEN;