From 988d896c0a3b60fab9cd323e52eefd4af98be323 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 17 Dec 2011 10:24:09 +0000 Subject: [PATCH] * dcrt0.cc (_dll_crt0): Fix formatting. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/dcrt0.cc | 9 +++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 365948bac..d07638cd0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2011-12-17 Corinna Vinschen + + * dcrt0.cc (_dll_crt0): Fix formatting. + 2011-12-17 Corinna Vinschen * wow64.cc (wow64_revert_to_original_stack): Fix comment. diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index fe6d62e57..8b6993968 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -958,17 +958,14 @@ _dll_crt0 () PVOID stackaddr = wow64_revert_to_original_stack (allocationbase); if (stackaddr) { - /* 2nd half of the stack move. First set stack pointers to - our new address. */ + /* 2nd half of the stack move. Set stack pointers to new address. */ __asm__ ("\n\ movl %[ADDR], %%esp \n\ movl %%esp, %%ebp \n" : : [ADDR] "r" (stackaddr)); /* Now we're back on the original stack. Free up space taken by the - former main thread stack and... */ - VirtualFree (NtCurrentTeb ()->DeallocationStack, - 0, MEM_RELEASE); - /* ...set DeallocationStack correctly. */ + former main thread stack and set DeallocationStack correctly. */ + VirtualFree (NtCurrentTeb ()->DeallocationStack, 0, MEM_RELEASE); NtCurrentTeb ()->DeallocationStack = allocationbase; } else -- 2.43.5