Changeset 8883 for trunk/src/kernel32/winimagelx.cpp
- Timestamp:
- Jul 17, 2002, 11:09:20 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagelx.cpp
r8877 r8883 1 /* $Id: winimagelx.cpp,v 1.1 5 2002-07-15 14:28:53 sandervlExp $ */1 /* $Id: winimagelx.cpp,v 1.16 2002-07-17 21:09:20 achimha Exp $ */ 2 2 3 3 /* … … 123 123 ULONG apiaddr; 124 124 125 rc = DosQueryProcAddr(hinstanceOS2, dwOrdinalBase +ordinal, NULL, (PFN *)&apiaddr);125 rc = DosQueryProcAddr(hinstanceOS2, dwOrdinalBase + ordinal, NULL, (PFN *)&apiaddr); 126 126 if(rc) { 127 127 dprintf(("Win32LxImage::getApi %x %d -> rc = %d", hinstanceOS2, ordinal, rc)); … … 131 131 } 132 132 //****************************************************************************** 133 // here we build a fake PE header for an LX module. In Windows, HINSTANCE handles 134 // actually contain the virtual address of of the PE header. We try to fill in 135 // sensible values as much as possible... 133 136 //****************************************************************************** 134 137 LPVOID Win32LxImage::buildHeader(DWORD MajorImageVersion, DWORD MinorImageVersion, … … 141 144 DWORD *ntsig; 142 145 146 // AH TODO: we are wasting 60k address space here!!!! (at least without PAG_ANY) 143 147 rc = DosAllocMem(&header, 4096, PAG_READ | PAG_WRITE | PAG_COMMIT | flAllocMem); 144 148 if(rc) {
Note:
See TracChangeset
for help on using the changeset viewer.