Ignore:
Timestamp:
Jul 20, 2000, 8:07:00 PM (25 years ago)
Author:
sandervl
Message:

Always try to allocate an executable image at it's preferred address

File:
1 edited

Legend:

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

    r3765 r3872  
    1 /* $Id: winimagepeldr.cpp,v 1.49 2000-06-28 18:08:36 sandervl Exp $ */
     1/* $Id: winimagepeldr.cpp,v 1.50 2000-07-20 18:07:00 sandervl Exp $ */
    22
    33/*
     
    676676 ULONG  baseAddress;
    677677
     678  realBaseAddress = 0;
     679
     680  //Allocated in peldr.dll
     681  if(reservedMem && reservedMem == oh.ImageBase) {
     682        realBaseAddress = oh.ImageBase;
     683        return TRUE;
     684  }
     685
    678686  //SvL: We don't care where the image is loaded for resource lookup
    679687  if(fh.Characteristics & IMAGE_FILE_RELOCS_STRIPPED && loadType == REAL_LOAD) {
     
    755763 APIRET rc;
    756764 BOOL   allocFlags = flAllocMem;
    757 
    758   realBaseAddress = 0;
    759 
    760   //Allocated in peldr.dll
    761   if(reservedMem && reservedMem == oh.ImageBase) {
    762         realBaseAddress = oh.ImageBase;
    763         return TRUE;
    764   }
    765765
    766766  //Reserve enough space to store 4096 pointers to 1MB memory chunks
Note: See TracChangeset for help on using the changeset viewer.