diff options
author | Christopher Faylor <me@cgf.cx> | 2004-05-28 19:50:07 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-05-28 19:50:07 +0000 |
commit | e3778517d9c6409c9c917db83ccac20de1800a29 (patch) | |
tree | 407e958798d6f156ff0762350734b7b92cf032d8 /winsup/cygwin/heap.cc | |
parent | dccc3e5d2c6059410c12feb9e5d26f3176334011 (diff) | |
download | cygnal-e3778517d9c6409c9c917db83ccac20de1800a29.tar.gz cygnal-e3778517d9c6409c9c917db83ccac20de1800a29.tar.bz2 cygnal-e3778517d9c6409c9c917db83ccac20de1800a29.zip |
* path.cc (chdir): Always use the normalized_path as posix_cwd, except if it
starts with a drive.
Also perform whitespace cleanup.
Diffstat (limited to 'winsup/cygwin/heap.cc')
-rw-r--r-- | winsup/cygwin/heap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); |