- Timestamp:
- Dec 24, 2006, 4:10:53 AM (19 years ago)
- Location:
- trunk/kLdr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdrHlp.c
r2893 r2898 852 852 } 853 853 854 855 #ifdef kLdrHlpStrNComp_needed 856 int kLdrHlpStrNComp(const char *psz1, const char *psz2, size_t cch) 857 { 858 while (cch-- > 0) 859 { 860 if (*psz1 != *psz2) 861 return (int)*psz1 - (int)*psz2; 862 if (!*psz1) 863 break; 864 psz1++; 865 psz2++; 866 } 867 return 0; 868 } 869 #endif 870 -
trunk/kLdr/kLdrModNative.c
r2893 r2898 644 644 for (iName = 0; iName < cNames; iName++) 645 645 { 646 const char *pszName; 646 647 if (paOrdinals[iName] != iFunction) 647 648 continue; 648 649 fFoundName = 1; 649 rc = pfnCallback(pMod, iFunction + pExpDir->Base, 650 KLDRMODNATIVE_RVA2TYPE(pModNative->hmod, paRVANames[iName], const char *), 650 651 pszName = KLDRMODNATIVE_RVA2TYPE(pModNative->hmod, paRVANames[iName], const char *); 652 rc = pfnCallback(pMod, iFunction + pExpDir->Base, pszName, strlen(pszName), NULL, 651 653 uValue, fKind, pvUser); 652 654 if (rc) … … 659 661 if (!fFoundName) 660 662 { 661 rc = pfnCallback(pMod, iFunction + pExpDir->Base, NULL, uValue, fKind, pvUser);663 rc = pfnCallback(pMod, iFunction + pExpDir->Base, NULL, 0, NULL, uValue, fKind, pvUser); 662 664 if (rc) 663 665 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.