Changeset 2570 for trunk/src/peldr/initterm.cpp
- Timestamp:
- Jan 30, 2000, 1:56:02 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/peldr/initterm.cpp
r2519 r2570 1 /* $Id: initterm.cpp,v 1. 5 2000-01-26 11:26:36sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.6 2000-01-30 12:56:02 sandervl Exp $ */ 2 2 3 3 /* … … 124 124 void AllocateExeMem(char *filename) 125 125 { 126 HFILE dllfile ;126 HFILE dllfile = 0; 127 127 char szFileName[CCHMAXPATH], *tmp; 128 128 ULONG action, ulRead, signature; … … 135 135 ULONG alloccnt = 0; 136 136 ULONG diff, i, baseAddress; 137 ULONG ulSysinfo, flAllocMem ;137 ULONG ulSysinfo, flAllocMem = 0; 138 138 139 139 strcpy(szFileName, filename); … … 156 156 rc = DosOpen(szFileName, &dllfile, &action, 0, FILE_READONLY, OPEN_ACTION_OPEN_IF_EXISTS|OPEN_ACTION_FAIL_IF_NEW, OPEN_SHARE_DENYNONE|OPEN_ACCESS_READONLY, NULL); 157 157 if(rc) { 158 return; //oops158 goto end; //oops 159 159 } 160 160 … … 198 198 } 199 199 200 if(oh.ImageBase < 512*1024*1 24) {200 if(oh.ImageBase < 512*1024*1024) { 201 201 flAllocMem = 0; 202 } 203 else { 204 if(flAllocMem == 0) { 205 goto end; //no support for > 512 MB 206 } 202 207 } 203 208 while(TRUE) { … … 233 238 234 239 end: 235 DosClose(dllfile);240 if(dllfile) DosClose(dllfile); 236 241 return; 237 242 }
Note:
See TracChangeset
for help on using the changeset viewer.