Changeset 12461
- Timestamp:
- Nov 29, 1999, 1:33:38 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/win32k/pe2lx/pe2lx.cpp ¶
r12343 r12461 1 /* $Id: pe2lx.cpp,v 1.1 1 1999-11-16 18:07:55bird Exp $1 /* $Id: pe2lx.cpp,v 1.12 1999-11-29 00:33:38 bird Exp $ 2 2 * 3 3 * Pe2Lx class implementation. Ring 0 and Ring 3 … … 1708 1708 * Check and read directories for imports and relocations. 1709 1709 * Create necessary Buffered RVA Readers. 1710 * Make sure kernel32 is the first imported module. 1710 1711 * Initiate the import variables (if any imports): 1711 1712 * Loop thru the import descriptiors looking for the lowest FirstThunk RVA. (ulRVAOrgFirstThunk and ulRVAFirstThunk) … … 1870 1871 } 1871 1872 1873 /* Make sure kernel32 is the first imported module */ 1874 if (rc == NO_ERROR) 1875 rc = addModule("KERNEL32.DLL", (PULONG)SSToDS(&ul)); 1876 1872 1877 /* initiate the import variables */ 1873 1878 if (fImports && rc == NO_ERROR) … … 1906 1911 1907 1912 /* read start of the first basereloc chunk */ 1908 if (fBaseRelocs )1913 if (fBaseRelocs && rc == NO_ERROR) 1909 1914 rc = pRelocReader->readAtRVA(ulRVABaseReloc, SSToDS(&BaseReloc), sizeof(BaseReloc)); 1915 1910 1916 1911 1917 /* … … 3493 3499 * IF no enough memory THEN (try) allocate more. 3494 3500 * IF Function ordinal THEN convert it to an ordinal number. 3501 * Make sure kernel32 is the first imported module. 3495 3502 * Add module name. 3496 3503 * IF not forwarder to ordinal THEN Add name to imported procedure table. … … 3606 3613 else 3607 3614 ulFnOrdinal = 0; /* not ordinal! */ 3615 3616 /* Make sure kernel32 is the first imported module */ 3617 if (offCurImpModuleName == 0) 3618 { 3619 rc = addModule("KERNEL32.DLL", (PULONG)SSToDS(&ulModuleOrdinal)); 3620 if (rc != NO_ERROR) 3621 return rc; 3622 } 3608 3623 3609 3624 /* Add module name. */
Note:
See TracChangeset
for help on using the changeset viewer.