- Timestamp:
- Jul 15, 2001, 5:18:58 PM (24 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/initterm.cpp
r6294 r6340 59 59 60 60 PVOID SYSTEM _O32_GetEnvironmentStrings( VOID ); 61 BOOL fVersionWarp3 = FALSE; 61 62 62 63 /*-------------------------------------------------------------------*/ … … 97 98 size_t i; 98 99 APIRET rc; 99 ULONG ulSysinfo ;100 100 ULONG ulSysinfo, version[2]; 101 101 102 /*-------------------------------------------------------------------------*/ 102 103 /* If ulFlag is zero then the DLL is being loaded so initialization should */ … … 196 197 ulSysinfo = 1; 197 198 199 rc = DosQuerySysInfo(QSV_VERSION_MAJOR, QSV_VERSION_MINOR, version, sizeof(version)); 200 if(rc == 0){ 201 if(version[0] >= 20 && version[1] <= 30) { 202 fVersionWarp3 = TRUE; 203 } 204 } 205 198 206 /* Setup codepage info */ 199 207 CODEPAGE_Init(); -
trunk/src/kernel32/initterm.h
r4510 r6340 1 /* $Id: initterm.h,v 1. 6 2000-10-21 14:30:47 sandervl Exp $ */1 /* $Id: initterm.h,v 1.7 2001-07-15 15:18:57 sandervl Exp $ */ 2 2 /* 3 3 * KERNEL32 DLL entry point header … … 30 30 extern int globLoadNr; //global data 31 31 extern int loadNr; 32 extern BOOL fVersionWarp3; 32 33 33 34 /* Tue 03.03.1998: knut */ -
trunk/src/kernel32/wprocess.cpp
r6305 r6340 1 /* $Id: wprocess.cpp,v 1.1 29 2001-07-10 20:41:50 birdExp $ */1 /* $Id: wprocess.cpp,v 1.130 2001-07-15 15:18:58 sandervl Exp $ */ 2 2 3 3 /* … … 43 43 #include <wprocess.h> 44 44 #include "mmap.h" 45 #include "initterm.h" 45 46 46 47 #define DBG_LOCALLOG DBG_wprocess … … 1869 1870 //block until the launched app waits for input (or a timeout of 15 seconds) 1870 1871 //TODO: Shouldn't call Open32, but the api in user32.. 1871 rc = O32_WaitForInputIdle(procinfo.hProcess, 15000); 1872 if(rc != 0) { 1873 dprintf(("WinExec: WaitForInputIdle %x returned %x", procinfo.hProcess, rc)); 1872 if(fVersionWarp3) { 1873 Sleep(1000); //WaitForInputIdle not available in Warp 3 1874 } 1875 else { 1876 rc = O32_WaitForInputIdle(procinfo.hProcess, 15000); 1877 if(rc != 0) { 1878 dprintf(("WinExec: WaitForInputIdle %x returned %x", procinfo.hProcess, rc)); 1879 } 1874 1880 } 1875 1881 CloseHandle(procinfo.hThread);
Note:
See TracChangeset
for help on using the changeset viewer.