Changeset 624 for trunk/src/kernel32/windll.cpp
- Timestamp:
- Aug 22, 1999, 5:11:35 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/windll.cpp
r617 r624 1 /* $Id: windll.cpp,v 1.1 1 1999-08-22 11:11:11sandervl Exp $ */1 /* $Id: windll.cpp,v 1.12 1999-08-22 15:11:35 sandervl Exp $ */ 2 2 3 3 /* … … 123 123 BOOL Win32Dll::init(ULONG reservedMem) 124 124 { 125 char modname[CCHMAXPATH]; 125 126 char *syspath; 126 127 FILE *dllfile; … … 130 131 if(fSystemDll == FALSE && fNativePEImage == TRUE) 131 132 {//might be win32 dll, so check this 133 strupr(szFileName); 134 if(!strstr(szFileName, ".DLL")) { 135 strcat(szFileName,".DLL"); 136 } 132 137 dllfile = fopen(szFileName, "r"); 133 138 if(dllfile == NULL) {//search in libpath for dll 134 139 syspath = getenv("WIN32LIBPATH"); 135 140 if(syspath) { 136 strcpy( szModule, syspath);137 if( szModule[strlen(szModule)-1] != '\\') {138 strcat( szModule, "\\");141 strcpy(modname, syspath); 142 if(modname[strlen(modname)-1] != '\\') { 143 strcat(modname, "\\"); 139 144 } 140 strcat( szModule, szFileName);141 s zFileName = szModule;145 strcat(modname, szFileName); 146 strcpy(szFileName, modname); 142 147 } 143 148 } … … 278 283 tlsAttachThread(); //setup TLS (main thread) 279 284 280 if(fSystemDll || fSkipEntryCalls ) {285 if(fSystemDll || fSkipEntryCalls || dllEntryPoint == NULL) { 281 286 dprintf(("attachProcess not required for dll %s", szModule)); 282 287 return(TRUE); … … 305 310 BOOL rc; 306 311 307 if(fSystemDll || fSkipEntryCalls ) {312 if(fSystemDll || fSkipEntryCalls || dllEntryPoint == NULL) { 308 313 tlsDetachThread(); //destroy TLS (main thread) 309 314 return(TRUE); … … 334 339 BOOL rc; 335 340 336 if(fSystemDll || fSkipEntryCalls )341 if(fSystemDll || fSkipEntryCalls || dllEntryPoint == NULL) 337 342 return(TRUE); 338 343 … … 354 359 BOOL rc; 355 360 356 if(fSystemDll || fSkipEntryCalls )361 if(fSystemDll || fSkipEntryCalls || dllEntryPoint == NULL) 357 362 return(TRUE); 358 363
Note:
See TracChangeset
for help on using the changeset viewer.