Ignore:
Timestamp:
Feb 9, 2000, 2:42:13 PM (26 years ago)
Author:
sandervl
Message:

WinExec: Wait for process to block on input before returning

File:
1 edited

Legend:

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

    r2345 r2696  
    1 /* $Id: wprocess.cpp,v 1.66 2000-01-06 20:07:10 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.67 2000-02-09 13:42:13 sandervl Exp $ */
    22
    33/*
     
    851851 STARTUPINFOA        startinfo = {0};
    852852 PROCESS_INFORMATION procinfo;
     853 DWORD               rc;
    853854
    854855    dprintf(("KERNEL32: WinExec %s\n", lpCmdLine));
     
    857858                      &startinfo, &procinfo) == FALSE)
    858859    {
    859     return 0;
     860        return 0;
     861    }
     862    //block until the launched app waits for input (or a timeout of 15 seconds)
     863    //TODO: Shouldn't call Open32, but the api in user32..
     864    rc = O32_WaitForInputIdle(procinfo.hProcess, 15000);
     865    if(rc != 0) {
     866        dprintf(("WinExec: WaitForInputIdle %x returned %x", procinfo.hProcess, rc));
    860867    }
    861868    return procinfo.hProcess; //correct?
Note: See TracChangeset for help on using the changeset viewer.