Changeset 550 for trunk/src/kernel32/windll.cpp
- Timestamp:
- Aug 18, 1999, 7:18:01 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/windll.cpp
r544 r550 1 /* $Id: windll.cpp,v 1. 9 1999-08-18 12:24:16sandervl Exp $ */1 /* $Id: windll.cpp,v 1.10 1999-08-18 17:18:00 sandervl Exp $ */ 2 2 3 3 /* … … 29 29 #include <wprocess.h> 30 30 #include "cio.h" 31 #include "os2util.h"32 31 33 32 /*********************************** … … 47 46 head = this; 48 47 49 strcpy(szModule, StripPath(szFileName));50 UpCase(szModule);51 char *dot = strstr(szModule, ".");52 while(dot) {53 char *newdot = strstr(dot+1, ".");54 if(newdot == NULL) break;55 dot = newdot;56 }57 if(dot)58 *dot = 0;59 48 dprintf(("Win32Dll::Win32Dll %s %s", szFileName, szModule)); 60 49 } … … 71 60 head = this; 72 61 73 char *name = OS2GetDllName(hinstance);74 strcpy(szModule, name);75 UpCase(szModule);76 char *dot = strstr(szModule, ".");77 while(dot) {78 char *newdot = strstr(dot+1, ".");79 if(newdot == NULL) break;80 dot = newdot;81 }82 if(dot)83 *dot = 0;84 85 62 dprintf(("Win32Dll::Win32Dll %s", szModule)); 86 63 } … … 92 69 dllEntryPoint = DllEntryPoint; 93 70 fUnloaded = FALSE; 94 95 char *name = OS2GetDllName(hinstance);96 strcpy(szModule, name);97 UpCase(szModule);98 char *dot = strstr(szModule, ".");99 while(dot) {100 char *newdot = strstr(dot+1, ".");101 if(newdot == NULL) break;102 dot = newdot;103 }104 if(dot)105 *dot = 0;106 71 107 72 Win32Image::OS2ImageInit(hinstance, NameTableId, Win32TableId); … … 208 173 209 174 strcpy(szModule, szFileName); 210 UpCase(szModule);175 strupr(szModule); 211 176 dot = strstr(szModule, "."); 212 177 if(dot) … … 427 392 Win32Dll *dll = head; 428 393 char szDllName[CCHMAXPATH]; 429 char *dot ;394 char *dot, *temp; 430 395 431 396 dprintf(("findModule %s", dllname)); 432 strcpy(szDllName, dllname); 433 UpCase(szDllName); 397 398 strcpy(szDllName, StripPath(dllname)); 399 strupr(szDllName); 434 400 dot = strstr(szDllName, "."); 435 401 if(dot) … … 476 442 //****************************************************************************** 477 443 //****************************************************************************** 478 char *Win32Dll::StripPath(char *path)479 {480 /* @@@PH what does this function do ? Strip the path from a FQFN name ? */481 char *pszFilename;482 483 pszFilename = strrchr(path, '\\'); /* find rightmost slash */484 if (pszFilename != NULL)485 return (pszFilename++); /* return pointer to next character */486 487 pszFilename = strrchr(path, '/'); /* find rightmost slash */488 if (pszFilename != NULL)489 return (pszFilename++); /* return pointer to next character */490 491 return (path); /* default return value */492 493 #if 0494 char *fname = path, *prevname = path-1;495 496 while(TRUE)497 {498 @@@PH causes endless loop here !499 fname = strchr(fname, '\\');500 if(fname == NULL)501 break;502 503 prevname = fname;504 }505 return(prevname+1);506 #endif507 }508 /******************************************************************************/509 /******************************************************************************/510 444 Win32Dll *Win32Dll::head = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.