OSDN Git Service

* dcrt0.cc (_dll_crt0): Fix formatting.
authorcorinna <corinna>
Sat, 17 Dec 2011 10:24:07 +0000 (10:24 +0000)
committercorinna <corinna>
Sat, 17 Dec 2011 10:24:07 +0000 (10:24 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/dcrt0.cc

index 365948b..d07638c 100644 (file)
@@ -1,5 +1,9 @@
 2011-12-17  Corinna Vinschen  <vinschen@redhat.com>
 
+       * dcrt0.cc (_dll_crt0): Fix formatting.
+
+2011-12-17  Corinna Vinschen  <vinschen@redhat.com>
+
        * wow64.cc (wow64_revert_to_original_stack): Fix comment.
        * wow64.h (wow64_respawn_process): Declare noreturn.
 
index fe6d62e..8b69939 100644 (file)
@@ -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