Ignore:
Timestamp:
Mar 6, 2003, 1:49:08 PM (22 years ago)
Author:
sandervl
Message:

Don't change the stack alignment if the thread has less than 128 kb stack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/thread.cpp

    r9910 r9913  
    1 /* $Id: thread.cpp,v 1.51 2003-03-06 10:22:27 sandervl Exp $ */
     1/* $Id: thread.cpp,v 1.52 2003-03-06 12:49:08 sandervl Exp $ */
    22
    33/*
     
    348348    Win32DllBase::attachThreadToAllDlls();    //send DLL_THREAD_ATTACH message to all dlls
    349349
     350    BOOL fAlignStack = ((ULONG)winteb->stack_top - (ULONG)winteb->stack_low) >= 128*1024;
     351
    350352    //Set FPU control word to 0x27F (same as in NT)
    351353    CONTROL87(0x27F, 0xFFF);
    352     rc = AsmCallThreadHandler(threadCallback, userdata);
     354    rc = AsmCallThreadHandler(fAlignStack, threadCallback, userdata);
    353355
    354356    if(fExitProcess) {
Note: See TracChangeset for help on using the changeset viewer.