Changeset 3578 for trunk/kStuff/kLdr/kLdrDyldFind.c
- Timestamp:
- Sep 2, 2007, 10:55:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kStuff/kLdr/kLdrDyldFind.c
r3574 r3578 94 94 KLDRDYLDSEARCH enmSearch; 95 95 KU32 fFlags; 96 PPK LDRRDRppRdr;96 PPKRDR ppRdr; 97 97 } KLDRDYLDFINDARGS, *PKLDRDYLDFINDARGS; 98 98 … … 201 201 *******************************************************************************/ 202 202 static int kldrDyldFindDoDllSearch(const char *pszName, const char *pszPrefix, const char *pszSuffix, 203 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPK LDRRDR ppRdr);203 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPKRDR ppRdr); 204 204 static int kldrDyldFindDoExeSearch(const char *pszName, const char *pszPrefix, const char *pszSuffix, 205 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPK LDRRDR ppRdr);206 static int kldrDyldFindTryOpen(const char *pszFilename, PPK LDRRDR ppRdr);205 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPKRDR ppRdr); 206 static int kldrDyldFindTryOpen(const char *pszFilename, PPKRDR ppRdr); 207 207 static int kldrDyldFindTryOpenPath(const char *pchPath, KSIZE cchPath, PCKLDRDYLDFINDARGS pArgs); 208 208 static int kldrDyldFindEnumeratePath(const char *pszSearchPath, PCKLDRDYLDFINDARGS pArgs); … … 356 356 { 357 357 int rc; 358 PK LDRRDR pRdr = NULL;358 PKRDR pRdr = NULL; 359 359 360 360 *ppMod = NULL; … … 376 376 if (fFlags & KLDRYDLD_LOAD_FLAGS_SPECIFIC_MODULE) 377 377 { 378 const char *pszFilename = k LdrRdrName(pRdr);378 const char *pszFilename = kRdrName(pRdr); 379 379 const KSIZE cchFilename = kHlpStrLen(pszFilename); 380 380 PKLDRDYLDMOD pCur; … … 390 390 if (!(fFlags & KLDRYDLD_LOAD_FLAGS_SPECIFIC_MODULE)) 391 391 { 392 const char *pszFilename = k LdrRdrName(pRdr);392 const char *pszFilename = kRdrName(pRdr); 393 393 const KSIZE cchFilename = kHlpStrLen(pszFilename); 394 394 PKLDRDYLDMOD pCur; … … 399 399 && !kHlpMemComp(pCur->pMod->pszFilename, pszFilename, cchFilename)) 400 400 { 401 k LdrRdrClose(pRdr);401 kRdrClose(pRdr); 402 402 kldrDyldModMarkGlobal(pCur); 403 403 *ppMod = pCur; … … 414 414 rc = kldrDyldModCreate(pRdr, fFlags, ppMod); 415 415 if (rc) 416 k LdrRdrClose(pRdr);416 kRdrClose(pRdr); 417 417 } 418 418 return rc; … … 434 434 */ 435 435 static int kldrDyldFindDoDllSearch(const char *pszName, const char *pszPrefix, const char *pszSuffix, 436 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPK LDRRDR ppRdr)436 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPKRDR ppRdr) 437 437 { 438 438 int rc; … … 548 548 */ 549 549 static int kldrDyldFindDoExeSearch(const char *pszName, const char *pszPrefix, const char *pszSuffix, 550 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPK LDRRDR ppRdr)550 KLDRDYLDSEARCH enmSearch, unsigned fFlags, PPKRDR ppRdr) 551 551 { 552 552 int rc; … … 609 609 * @param ppRdr Where to store the pointer to the new module. 610 610 */ 611 static int kldrDyldFindTryOpen(const char *pszFilename, PPK LDRRDR ppRdr)611 static int kldrDyldFindTryOpen(const char *pszFilename, PPKRDR ppRdr) 612 612 { 613 613 int rc; … … 616 616 * Try open the file. 617 617 */ 618 rc = k LdrRdrOpen(ppRdr, pszFilename);618 rc = kRdrOpen(ppRdr, pszFilename); 619 619 if (!rc) 620 620 return 0; … … 899 899 ) 900 900 { 901 PK LDRRDR pRdr;901 PKRDR pRdr; 902 902 if (fOS2LibpathStrict) 903 903 rc = kldrDyldFindDoDllSearch(pszName, pszPrefix, pszSuffix, enmSearch, fFlags, &pRdr); … … 907 907 { 908 908 /* do a filename based search. */ 909 const char *pszFilename = k LdrRdrName(pRdr);909 const char *pszFilename = kRdrName(pRdr); 910 910 const KSIZE cchFilename = kHlpStrLen(pszFilename); 911 911 PKLDRDYLDMOD pCur; … … 921 921 } 922 922 } 923 k LdrRdrClose(pRdr);923 kRdrClose(pRdr); 924 924 } 925 925 }
Note:
See TracChangeset
for help on using the changeset viewer.