Ignore:
Timestamp:
Nov 10, 1999, 2:45:38 AM (26 years ago)
Author:
bird
Message:

Some bugsfixes - Yield is disabled.
Added parameters.
Correcte moduleheaders.
Introduced a new base class for virtual lx modules + some elf sketches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/ldr/myldrOpen.cpp

    r1535 r1678  
    1 /* $Id: myldrOpen.cpp,v 1.4 1999-10-31 23:57:06 bird Exp $
     1/* $Id: myldrOpen.cpp,v 1.5 1999-11-10 01:45:36 bird Exp $
    22 *
    33 * myldrOpen - _ldrOpen.
    44 *
    55 * Copyright (c) 1998-1999 knut st. osmundsen
     6 *
     7 * Project Odin Software License can be found in LICENSE.TXT
    68 *
    79 */
     
    2729#include <exe386.h>
    2830#include "OS2Krnl.h"
     31#include "ModuleBase.h"
    2932#include "pe2lx.h"
    3033#include "elf.h"
     
    128131                }
    129132                else
    130                     if (*pach == '#')
     133                    if (*pach == '#' && pach[1] == '!')
    131134                    {
    132135                        /* unix styled script...? Must be more than 64 bytes long? No options. firstline < 64 bytes. */
    133                         char *pszStart = pach+1;
     136                        char *pszStart = pach+2;
    134137                        char *pszEnd;
    135138                        kprintf(("_ldrOpen: unix script?\n"));
     
    142145                        if (*pszStart != '\0' && *pszStart != '\r' && *pszStart != '\n')
    143146                        {   /* find end-of-word */
     147                            pszEnd = pszStart + 1;
    144148                            while (*pszEnd != '\0' && *pszEnd != '\n' && *pszEnd != '\r'
    145149                                   && *pszEnd != '\t' && *pszEnd != ' ')
    146150                                pszEnd++;
    147                             *pszEnd = '\0';
    148151                            if (*pszEnd != '\0')
    149152                            {
     153                                *pszEnd = '\0';
    150154                                kprintf(("_ldrOpen: unix script - opening %s\n", pszStart));
    151155                                _ldrClose(*phFile);
Note: See TracChangeset for help on using the changeset viewer.