Ignore:
Timestamp:
Mar 20, 2018, 4:13:12 AM (7 years ago)
Author:
bird
Message:

kmk/win: Pretty sure I made this lpReserved2 mistake before. Duh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/redirect.c

    r3161 r3162  
    979979        StartupInfo.cb = sizeof(StartupInfo);
    980980        GetStartupInfoA(&StartupInfo);
     981        StartupInfo.lpReserved2 = 0; /* No CRT file handle + descriptor info possible, sorry. */
     982        StartupInfo.cbReserved2 = 0;
    981983        StartupInfo.dwFlags &= ~STARTF_USESTDHANDLES;
    982984
     
    10341036                /*
    10351037                 * Start the process in suspended animation so we can inject handles.
    1036                  *
    1037                  * We clear the reserved 2 pointer + size to avoid passing the wrong
    1038                  * filehandle info to the child.  We may later want to generate this.
    10391038                 */
    1040                 StartupInfo.cbReserved2 = 0;
    1041                 StartupInfo.lpReserved2 = 0;
    1042 
    10431039                if (CreateProcessA(pszExecutable, pszCmdLine, NULL /*pProcAttrs*/, NULL /*pThreadAttrs*/,
    10441040                                   FALSE /*fInheritHandles*/, CREATE_SUSPENDED, pszzEnv, pszCwd, &StartupInfo, &ProcInfo))
Note: See TracChangeset for help on using the changeset viewer.