Ignore:
Timestamp:
May 7, 2001, 12:07:40 PM (24 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

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

    r5587 r5666  
    1 /* $Id: wprocess.cpp,v 1.119 2001-04-26 13:22:49 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.120 2001-05-07 10:07:40 phaller Exp $ */
    22
    33/*
     
    16021602      return(TRUE);
    16031603    }
     1604
     1605    // PH 2001-05-07
     1606    // verify why O32_CreateProcess actually failed.
     1607    // If GetLastError() == 191 (ERROR_INVALID_EXE_SIGNATURE)
     1608    // we can continue to call "PE.EXE".
     1609    // Note: Open32 does not translate ERROR_INVALID_EXE_SIGNATURE,
     1610    // it is also valid in Win32.
     1611    DWORD dwError = GetLastError();
     1612    if (ERROR_INVALID_EXE_SIGNATURE != dwError)
     1613    {
     1614        dprintf(("CreateProcess: O32_CreateProcess failed with rc=%d, not PE-executable !",
     1615                dwError));
     1616
     1617        // the current value of GetLastError() is still valid.
     1618
     1619        return FALSE;
     1620    }
     1621
     1622    // else ...
     1623
    16041624    //probably a win32 exe, so run it in the pe loader
    16051625    if(lpApplicationName) {
Note: See TracChangeset for help on using the changeset viewer.