Changeset 6340 for trunk/src


Ignore:
Timestamp:
Jul 15, 2001, 5:18:58 PM (24 years ago)
Author:
sandervl
Message:

Do not use imports not available in Warp 3's PMWINX (WaitForInputIdle)

Location:
trunk/src/kernel32
Files:
3 edited

Legend:

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

    r6294 r6340  
    5959
    6060PVOID   SYSTEM _O32_GetEnvironmentStrings( VOID );
     61BOOL  fVersionWarp3 = FALSE;
    6162
    6263/*-------------------------------------------------------------------*/
     
    9798    size_t i;
    9899    APIRET rc;
    99     ULONG  ulSysinfo;
    100 
     100    ULONG  ulSysinfo, version[2];
     101   
    101102    /*-------------------------------------------------------------------------*/
    102103    /* If ulFlag is zero then the DLL is being loaded so initialization should */
     
    196197                ulSysinfo = 1;
    197198
     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
    198206            /* Setup codepage info */
    199207            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 $ */
    22/*
    33 * KERNEL32 DLL entry point header
     
    3030extern int globLoadNr; //global data
    3131extern int loadNr;
     32extern BOOL fVersionWarp3;
    3233
    3334/* Tue 03.03.1998: knut */
  • trunk/src/kernel32/wprocess.cpp

    r6305 r6340  
    1 /* $Id: wprocess.cpp,v 1.129 2001-07-10 20:41:50 bird Exp $ */
     1/* $Id: wprocess.cpp,v 1.130 2001-07-15 15:18:58 sandervl Exp $ */
    22
    33/*
     
    4343#include <wprocess.h>
    4444#include "mmap.h"
     45#include "initterm.h"
    4546
    4647#define DBG_LOCALLOG    DBG_wprocess
     
    18691870    //block until the launched app waits for input (or a timeout of 15 seconds)
    18701871    //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        }
    18741880    }
    18751881    CloseHandle(procinfo.hThread);
Note: See TracChangeset for help on using the changeset viewer.