diff options
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index 10c16d1a2..49a819a65 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -27,8 +27,7 @@ static NO_COPY muto *cygheap_protect = NULL; inline static void init_cheap () { - void *addr = cygheap_address; - cygheap = (init_cygheap *) VirtualAlloc (addr, CYGHEAPSIZE, MEM_RESERVE, PAGE_NOACCESS); + cygheap = (init_cygheap *) VirtualAlloc (NULL, CYGHEAPSIZE, MEM_RESERVE, PAGE_NOACCESS); if (!cygheap) api_fatal ("Couldn't reserve space for cygwin's heap, %E"); cygheap_max = cygheap + 1; @@ -67,14 +66,6 @@ cygheap_init () { cygheap_protect = new_muto (FALSE, "cygheap_protect"); _csbrk (0); - - char username[MAX_USER_NAME]; - DWORD username_len = MAX_USER_NAME; - - if (!GetUserName (username, &username_len)) - cygheap->user.set_name ("unknown"); - else - cygheap->user.set_name (username); } /* Copyright (C) 1997, 2000 DJ Delorie */ |