Changeset 1678 for trunk/src/win32k/ldr/myldrOpen.cpp
- Timestamp:
- Nov 10, 1999, 2:45:38 AM (26 years ago)
- 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 $ 2 2 * 3 3 * myldrOpen - _ldrOpen. 4 4 * 5 5 * Copyright (c) 1998-1999 knut st. osmundsen 6 * 7 * Project Odin Software License can be found in LICENSE.TXT 6 8 * 7 9 */ … … 27 29 #include <exe386.h> 28 30 #include "OS2Krnl.h" 31 #include "ModuleBase.h" 29 32 #include "pe2lx.h" 30 33 #include "elf.h" … … 128 131 } 129 132 else 130 if (*pach == '#' )133 if (*pach == '#' && pach[1] == '!') 131 134 { 132 135 /* 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; 134 137 char *pszEnd; 135 138 kprintf(("_ldrOpen: unix script?\n")); … … 142 145 if (*pszStart != '\0' && *pszStart != '\r' && *pszStart != '\n') 143 146 { /* find end-of-word */ 147 pszEnd = pszStart + 1; 144 148 while (*pszEnd != '\0' && *pszEnd != '\n' && *pszEnd != '\r' 145 149 && *pszEnd != '\t' && *pszEnd != ' ') 146 150 pszEnd++; 147 *pszEnd = '\0';148 151 if (*pszEnd != '\0') 149 152 { 153 *pszEnd = '\0'; 150 154 kprintf(("_ldrOpen: unix script - opening %s\n", pszStart)); 151 155 _ldrClose(*phFile);
Note:
See TracChangeset
for help on using the changeset viewer.