From e3778517d9c6409c9c917db83ccac20de1800a29 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 28 May 2004 19:50:07 +0000 Subject: * path.cc (chdir): Always use the normalized_path as posix_cwd, except if it starts with a drive. Also perform whitespace cleanup. --- winsup/cygwin/heap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/heap.cc') diff --git a/winsup/cygwin/heap.cc b/winsup/cygwin/heap.cc index 9ea5d9ba7..9f86f9911 100644 --- a/winsup/cygwin/heap.cc +++ b/winsup/cygwin/heap.cc @@ -145,7 +145,7 @@ sbrk (int n) newbrksize = commitbytes; if ((VirtualAlloc (cygheap->user_heap.top, newbrksize, MEM_RESERVE, PAGE_NOACCESS) - || VirtualAlloc (cygheap->user_heap.top, newbrksize = commitbytes, MEM_RESERVE, PAGE_NOACCESS)) + || VirtualAlloc (cygheap->user_heap.top, newbrksize = commitbytes, MEM_RESERVE, PAGE_NOACCESS)) && VirtualAlloc (cygheap->user_heap.top, commitbytes, MEM_COMMIT, PAGE_READWRITE) != NULL) { cygheap->user_heap.max = (char *) cygheap->user_heap.max + pround (newbrksize); -- cgit v1.2.3