Ignore:
Timestamp:
Mar 18, 2012, 12:41:27 AM (14 years ago)
Author:
dmik
Message:

kernel32: Fix stack size interpretation in CreateThread().

It now uses the stack size parameter as a number of bytes to
pre-commit, not as a total stack size, unless
STACK_SIZE_PARAM_IS_A_RESERVATION is set.

Closes #77.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/winbase.h

    r21956 r21981  
    883883/* CreateProcess: dwCreationFlag values
    884884 */
    885 #define DEBUG_PROCESS               0x00000001
    886 #define DEBUG_ONLY_THIS_PROCESS     0x00000002
    887 #define CREATE_SUSPENDED            0x00000004
    888 #define DETACHED_PROCESS            0x00000008
    889 #define CREATE_NEW_CONSOLE          0x00000010
    890 #define NORMAL_PRIORITY_CLASS       0x00000020
    891 #define IDLE_PRIORITY_CLASS         0x00000040
    892 #define HIGH_PRIORITY_CLASS         0x00000080
    893 #define REALTIME_PRIORITY_CLASS     0x00000100
    894 #define CREATE_NEW_PROCESS_GROUP    0x00000200
    895 #define CREATE_UNICODE_ENVIRONMENT  0x00000400
    896 #define CREATE_SEPARATE_WOW_VDM     0x00000800
    897 #define CREATE_SHARED_WOW_VDM       0x00001000
    898 #define CREATE_DEFAULT_ERROR_MODE   0x04000000
    899 #define CREATE_NO_WINDOW            0x08000000
    900 #define PROFILE_USER                0x10000000
    901 #define PROFILE_KERNEL              0x20000000
    902 #define PROFILE_SERVER              0x40000000
     885#define DEBUG_PROCESS                       0x00000001
     886#define DEBUG_ONLY_THIS_PROCESS             0x00000002
     887#define CREATE_SUSPENDED                    0x00000004
     888#define DETACHED_PROCESS                    0x00000008
     889#define CREATE_NEW_CONSOLE                  0x00000010
     890#define NORMAL_PRIORITY_CLASS               0x00000020
     891#define IDLE_PRIORITY_CLASS                 0x00000040
     892#define HIGH_PRIORITY_CLASS                 0x00000080
     893#define REALTIME_PRIORITY_CLASS             0x00000100
     894#define CREATE_NEW_PROCESS_GROUP            0x00000200
     895#define CREATE_UNICODE_ENVIRONMENT          0x00000400
     896#define CREATE_SEPARATE_WOW_VDM             0x00000800
     897#define CREATE_SHARED_WOW_VDM               0x00001000
     898#define STACK_SIZE_PARAM_IS_A_RESERVATION   0x00010000
     899#define CREATE_DEFAULT_ERROR_MODE           0x04000000
     900#define CREATE_NO_WINDOW                    0x08000000
     901#define PROFILE_USER                        0x10000000
     902#define PROFILE_KERNEL                      0x20000000
     903#define PROFILE_SERVER                      0x40000000
    903904
    904905
Note: See TracChangeset for help on using the changeset viewer.