Ignore:
Timestamp:
Jun 15, 2001, 8:58:39 PM (24 years ago)
Author:
sandervl
Message:

PDB.exit_code must point to some unknown structure

File:
1 edited

Legend:

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

    r6015 r6022  
    1 /* $Id: wprocess.cpp,v 1.125 2001-06-15 09:42:49 bird Exp $ */
     1/* $Id: wprocess.cpp,v 1.126 2001-06-15 18:58:39 sandervl Exp $ */
    22
    33/*
     
    6262
    6363//Process database
    64 PDB     ProcessPDB = {0};
    65 USHORT  ProcessTIBSel = 0;
    66 DWORD  *TIBFlatPtr    = 0;
     64PDB          ProcessPDB = {0};
     65STARTUPINFOA StartupInfo = {0};
     66CHAR         unknownPDBData[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ,0 ,0};
     67USHORT       ProcessTIBSel = 0;
     68DWORD       *TIBFlatPtr    = 0;
    6769
    6870//list of thread database structures
     
    174176
    175177    winteb->process         = &ProcessPDB;
    176     winteb->exit_code       = 0x103; /* STILL_ACTIVE */
     178////    winteb->exit_code       = 0x103; /* STILL_ACTIVE */
    177179    winteb->teb_sel         = tibsel;
    178180    winteb->o.odin.OrgTIBSel       = GetFS();
     
    181183    if(fMainThread) {
    182184         winteb->o.odin.hThread     = hThreadMain;
     185//         ProcessPDB.startup_info    = &StartupInfo;
     186         ProcessPDB.unknown10       = (PVOID)&unknownPDBData[0];
     187         StartupInfo.cb             = sizeof(StartupInfo);
     188         StartupInfo.hStdInput      = GetStdHandle(STD_INPUT_HANDLE);
     189         StartupInfo.hStdOutput     = GetStdHandle(STD_OUTPUT_HANDLE);
     190         StartupInfo.hStdError      = GetStdHandle(STD_ERROR_HANDLE);
    183191    }
    184192    else winteb->o.odin.hThread    = GetCurrentThread();
     
    236244        //TLS in executable always TLS index 0?
    237245        ProcessTIBSel = tibsel;
    238         ProcessPDB.exit_code       = 0x103; /* STILL_ACTIVE */
     246////        ProcessPDB.exit_code       = 0x103; /* STILL_ACTIVE */
    239247        ProcessPDB.threads         = 1;
    240248        ProcessPDB.running_threads = 1;
Note: See TracChangeset for help on using the changeset viewer.