Changeset 1467 for trunk/src/win32k/ldr/myldrRead.cpp
- Timestamp:
- Oct 27, 1999, 4:03:01 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/ldr/myldrRead.cpp
r1276 r1467 1 /* $Id: myldrRead.cpp,v 1. 3 1999-10-14 02:36:08 bird Exp $1 /* $Id: myldrRead.cpp,v 1.4 1999-10-27 02:02:58 bird Exp $ 2 2 * 3 3 * myldrRead - _ldrRead. … … 27 27 #include "OS2Krnl.h" 28 28 #include "pe2lx.h" 29 #include "avl.h" 29 30 #include "ldrCalls.h" 30 31 #include "ldr.h" … … 45 46 if (GetState(hFile) == HSTATE_OUR) 46 47 { 47 PPENODE pNode; 48 PMODULE pMod; 49 kprintf(("_ldrRead+: hF=%+04x off=%+08x pB=%+08x fl=%+08x cb=%+04x pMTE=%+08x\n",hFile,ulOffset,pBuffer,ulFlags,ulBytesToRead,pMTE)); 48 50 49 p Node = getNodePtr(hFile);50 if (p Node!= NULL)51 pMod = getModuleBySFN(hFile); 52 if (pMod != NULL) 51 53 { 52 54 /* I would love to have a pointer to the MTE */ 53 if (p Node->pMTE == NULL && pMTE != NULL)54 p Node->pMTE == pMTE;55 if (pMod->pMTE == NULL && pMTE != NULL) 56 pMod->pMTE == pMTE; 55 57 56 58 /* debug */ … … 58 60 kprintf(("_ldrRead: Warning ulFlags = 0x%x (!= 0)\n", ulFlags)); 59 61 60 rc = pNode->pPe2Lx->read(ulOffset, pBuffer, ulBytesToRead, ulFlags, pMTE); 62 if ((pMod->fFlags & MOD_TYPE_MASK) == MOD_TYPE_PE2LX) 63 rc = pMod->Data.pPe2Lx->read(ulOffset, pBuffer, ulBytesToRead, ulFlags, pMTE); 64 else 65 { 66 kprintf(("_ldrRead: Invalid module type, %#x\n", pMod->fFlags & MOD_TYPE_MASK)); 67 rc = ERROR_READ_FAULT; 68 } 61 69 return rc; 62 70 } … … 67 75 rc = _ldrRead(hFile, ulOffset, pBuffer, ulFlags, ulBytesToRead, pMTE); 68 76 69 // kprintf(("_ldrRead: hF=%+04x off=%+08x pB=%+08x fl=%+08x cb=%+04x pMTE=%+08x rc=%d\n",hFile,ulOffset,pBuffer,ulFlags,ulBytesToRead,pMTE,rc)); 77 #if 0 78 kprintf(("_ldrRead: hF=%+04x off=%+08x pB=%+08x fl=%+08x cb=%+04x pMTE=%+08x rc=%d\n", 79 hFile,ulOffset,pBuffer,ulFlags,ulBytesToRead,pMTE,rc)); 80 #endif 70 81 71 82 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.