Changeset 8882 for trunk/src/kernel32/winimagepeldr.cpp
- Timestamp:
- Jul 16, 2002, 10:16:48 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/winimagepeldr.cpp
r8877 r8882 1 /* $Id: winimagepeldr.cpp,v 1.9 6 2002-07-15 14:28:53sandervl Exp $ */1 /* $Id: winimagepeldr.cpp,v 1.97 2002-07-16 08:16:48 sandervl Exp $ */ 2 2 3 3 /* … … 431 431 } 432 432 433 dprintf((LOG, "OS/2 base address %x", realBaseAddress ));433 dprintf((LOG, "OS/2 base address %x", realBaseAddress )); 434 434 if(oh.AddressOfEntryPoint) { 435 435 entryPoint = realBaseAddress + oh.AddressOfEntryPoint; … … 999 999 ULONG diff, i, baseAddress; 1000 1000 APIRET rc; 1001 BOOL allocFlags = flAllocMem;1001 BOOL fLowMemory = FALSE; 1002 1002 1003 1003 //Reserve enough space to store 4096 pointers to 1MB memory chunks … … 1009 1009 1010 1010 if(oh.ImageBase < 512*1024*1024) { 1011 allocFlags = 0;1011 fLowMemory = TRUE; 1012 1012 } 1013 1013 while(TRUE) { 1014 rc = OSLibDosAllocMem((PPVOID)&address, FALLOC_SIZE, PAG_READ | allocFlags);1014 rc = OSLibDosAllocMem((PPVOID)&address, FALLOC_SIZE, PAG_READ, fLowMemory); 1015 1015 if(rc) break; 1016 1016 … … 1026 1026 diff = oh.ImageBase - address; 1027 1027 if(diff) { 1028 rc = OSLibDosAllocMem((PPVOID)&address, diff, PAG_READ | allocFlags);1028 rc = OSLibDosAllocMem((PPVOID)&address, diff, PAG_READ, fLowMemory); 1029 1029 if(rc) break; 1030 1030 } 1031 rc = OSLibDosAllocMem((PPVOID)&baseAddress, imageSize, PAG_READ | PAG_WRITE | allocFlags);1031 rc = OSLibDosAllocMem((PPVOID)&baseAddress, imageSize, PAG_READ | PAG_WRITE, fLowMemory); 1032 1032 if(rc) break; 1033 1033
Note:
See TracChangeset
for help on using the changeset viewer.