Ignore:
Timestamp:
Jul 17, 2002, 11:09:20 PM (23 years ago)
Author:
achimha
Message:

added more comments, documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winimagelx.cpp

    r8877 r8883  
    1 /* $Id: winimagelx.cpp,v 1.15 2002-07-15 14:28:53 sandervl Exp $ */
     1/* $Id: winimagelx.cpp,v 1.16 2002-07-17 21:09:20 achimha Exp $ */
    22
    33/*
     
    123123    ULONG       apiaddr;
    124124
    125     rc = DosQueryProcAddr(hinstanceOS2, dwOrdinalBase+ordinal, NULL, (PFN *)&apiaddr);
     125    rc = DosQueryProcAddr(hinstanceOS2, dwOrdinalBase + ordinal, NULL, (PFN *)&apiaddr);
    126126    if(rc) {
    127127        dprintf(("Win32LxImage::getApi %x %d -> rc = %d", hinstanceOS2, ordinal, rc));
     
    131131}
    132132//******************************************************************************
     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...
    133136//******************************************************************************
    134137LPVOID Win32LxImage::buildHeader(DWORD MajorImageVersion, DWORD MinorImageVersion,
     
    141144    DWORD *ntsig;
    142145
     146    // AH TODO: we are wasting 60k address space here!!!! (at least without PAG_ANY)
    143147    rc = DosAllocMem(&header, 4096, PAG_READ | PAG_WRITE | PAG_COMMIT | flAllocMem);
    144148    if(rc) {
Note: See TracChangeset for help on using the changeset viewer.