* miscfuncs.cc (CygwinCreateThread): Add accidentally missing comment.

This commit is contained in:
Corinna Vinschen 2011-05-20 18:15:12 +00:00
parent 5a755a9471
commit abb205a9fa
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-05-20 Corinna Vinschen <corinna@vinschen.de>
* miscfuncs.cc (CygwinCreateThread): Add accidentally missing comment.
2011-05-20 Corinna Vinschen <corinna@vinschen.de> 2011-05-20 Corinna Vinschen <corinna@vinschen.de>
* fhandler_process.cc (struct heap_info): Change type of base and end * fhandler_process.cc (struct heap_info): Change type of base and end

View File

@ -527,6 +527,7 @@ CygwinCreateThread (LPTHREAD_START_ROUTINE thread_func, PVOID thread_arg,
real_stacksize = PTHREAD_STACK_MIN; real_stacksize = PTHREAD_STACK_MIN;
if (stackaddr) if (stackaddr)
{ {
/* If the application provided the stack, just use it. */
wrapper_arg->stackaddr = (char *) stackaddr; wrapper_arg->stackaddr = (char *) stackaddr;
wrapper_arg->stackbase = (char *) stackaddr + real_stacksize; wrapper_arg->stackbase = (char *) stackaddr + real_stacksize;
} }