Changeset 6022 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Jun 15, 2001, 8:58:39 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r6015 r6022 1 /* $Id: wprocess.cpp,v 1.12 5 2001-06-15 09:42:49 birdExp $ */1 /* $Id: wprocess.cpp,v 1.126 2001-06-15 18:58:39 sandervl Exp $ */ 2 2 3 3 /* … … 62 62 63 63 //Process database 64 PDB ProcessPDB = {0}; 65 USHORT ProcessTIBSel = 0; 66 DWORD *TIBFlatPtr = 0; 64 PDB ProcessPDB = {0}; 65 STARTUPINFOA StartupInfo = {0}; 66 CHAR unknownPDBData[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ,0 ,0}; 67 USHORT ProcessTIBSel = 0; 68 DWORD *TIBFlatPtr = 0; 67 69 68 70 //list of thread database structures … … 174 176 175 177 winteb->process = &ProcessPDB; 176 winteb->exit_code = 0x103; /* STILL_ACTIVE */178 //// winteb->exit_code = 0x103; /* STILL_ACTIVE */ 177 179 winteb->teb_sel = tibsel; 178 180 winteb->o.odin.OrgTIBSel = GetFS(); … … 181 183 if(fMainThread) { 182 184 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); 183 191 } 184 192 else winteb->o.odin.hThread = GetCurrentThread(); … … 236 244 //TLS in executable always TLS index 0? 237 245 ProcessTIBSel = tibsel; 238 ProcessPDB.exit_code = 0x103; /* STILL_ACTIVE */246 //// ProcessPDB.exit_code = 0x103; /* STILL_ACTIVE */ 239 247 ProcessPDB.threads = 1; 240 248 ProcessPDB.running_threads = 1;
Note:
See TracChangeset
for help on using the changeset viewer.