Changeset 1678 for trunk/src/win32k/ldr
- Timestamp:
- Nov 10, 1999, 2:45:38 AM (26 years ago)
- Location:
- trunk/src/win32k/ldr
- Files:
-
- 1 added
- 5 edited
-
ModuleBase.cpp (added)
-
ldr.cpp (modified) (6 diffs)
-
myLDRQAppType.cpp (modified) (1 diff)
-
myldrClose.cpp (modified) (3 diffs)
-
myldrOpen.cpp (modified) (4 diffs)
-
myldrRead.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/ldr/ldr.cpp
r1535 r1678 1 /* $Id: ldr.cpp,v 1. 5 1999-10-31 23:57:05bird Exp $1 /* $Id: ldr.cpp,v 1.6 1999-11-10 01:45:36 bird Exp $ 2 2 * 3 3 * ldr.cpp - Loader helpers. 4 4 * 5 5 * Copyright (c) 1999 knut St. osmundsen 6 * 7 * Project Odin Software License can be found in LICENSE.TXT 6 8 * 7 9 */ … … 29 31 #include <exe386.h> 30 32 #include "OS2Krnl.h" 33 #include "ModuleBase.h" 31 34 #include "pe2lx.h" 32 35 #include "avl.h" … … 125 128 * @param pMTE Pointer to MTE. NULL is valid. 126 129 * @param fFlags Type flags for the fFlags field in the node. 127 * @param p vData Pointer to data.130 * @param pModObj Pointer to module object. 128 131 * @sketch DEBUG: check that the module doesn't exists and parameter check. 129 132 * (try) Allocate a new node. (return errorcode on failure) … … 135 138 * @author knut st. osmundsen 136 139 */ 137 ULONG addModule(SFN hFile, PMTE pMTE, ULONG fFlags, void *pvData)140 ULONG addModule(SFN hFile, PMTE pMTE, ULONG fFlags, ModuleBase *pModObj) 138 141 { 139 142 PMODULE pMod; … … 166 169 pMod->pMTE = pMTE; 167 170 pMod->fFlags = fFlags; 168 pMod->Data.p v = pvData;171 pMod->Data.pModule = pModObj; 169 172 170 173 /* insert the module node into the tree(s) */ … … 248 251 pMTERoot = NULL; 249 252 250 /* Pe2Lxlogging. */251 Pe2Lx::ulInfoLevel = options.ulInfoLevel;253 /* ModuleBase logging. */ 254 ModuleBase::ulInfoLevel = options.ulInfoLevel; 252 255 253 256 return rc; -
trunk/src/win32k/ldr/myLDRQAppType.cpp
r847 r1678 1 /* $Id: myLDRQAppType.cpp,v 1. 1 1999-09-06 02:20:01bird Exp $1 /* $Id: myLDRQAppType.cpp,v 1.2 1999-11-10 01:45:36 bird Exp $ 2 2 * 3 3 * _myLDRQAppType - _LDRQAppType overload. 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 */ -
trunk/src/win32k/ldr/myldrClose.cpp
r1467 r1678 1 /* $Id: myldrClose.cpp,v 1. 3 1999-10-27 02:02:58bird Exp $1 /* $Id: myldrClose.cpp,v 1.4 1999-11-10 01:45:36 bird Exp $ 2 2 * 3 3 * myldrClose - _ldrClose 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 */ … … 25 27 #include <exe386.h> 26 28 #include "OS2Krnl.h" 27 #include "pe2lx.h"28 29 #include "avl.h" 30 #include "ModuleBase.h" 29 31 #include "ldr.h" 30 32 #include "ldrCalls.h" … … 45 47 if (GetState(hFile) == HSTATE_OUR) 46 48 { 49 #ifdef DEBUG 50 PMODULE pMod = getModuleBySFN(hFile); 51 if (pMod != NULL) 52 pMod->Data.pModule->dumpVirtualLxFile(); 53 else 54 kprintf(("_ldrClose: getModuleBySFN failed!!!")); 55 #endif 56 47 57 rc = removeModule(hFile); 48 58 if (rc != NO_ERROR) -
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); -
trunk/src/win32k/ldr/myldrRead.cpp
r1467 r1678 1 /* $Id: myldrRead.cpp,v 1. 4 1999-10-27 02:02:58bird Exp $1 /* $Id: myldrRead.cpp,v 1.5 1999-11-10 01:45:36 bird Exp $ 2 2 * 3 3 * myldrRead - _ldrRead. 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 */ … … 26 28 #include <exe386.h> 27 29 #include "OS2Krnl.h" 30 #include "ModuleBase.h" 28 31 #include "pe2lx.h" 29 32 #include "avl.h" … … 61 64 62 65 if ((pMod->fFlags & MOD_TYPE_MASK) == MOD_TYPE_PE2LX) 63 rc = pMod->Data.p Pe2Lx->read(ulOffset, pBuffer, ulBytesToRead, ulFlags, pMTE);66 rc = pMod->Data.pModule->read(ulOffset, pBuffer, ulBytesToRead, ulFlags, pMTE); 64 67 else 65 68 {
Note:
See TracChangeset
for help on using the changeset viewer.
