Changeset 2898


Ignore:
Timestamp:
Dec 24, 2006, 4:10:53 AM (19 years ago)
Author:
bird
Message:

Made it build on windows.

Location:
trunk/kLdr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrHlp.c

    r2893 r2898  
    852852}
    853853
     854
     855#ifdef kLdrHlpStrNComp_needed
     856int     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  
    644644        for (iName = 0; iName < cNames; iName++)
    645645        {
     646            const char *pszName;
    646647            if (paOrdinals[iName] != iFunction)
    647648                continue;
    648649            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,
    651653                             uValue, fKind, pvUser);
    652654            if (rc)
     
    659661        if (!fFoundName)
    660662        {
    661             rc = pfnCallback(pMod, iFunction + pExpDir->Base, NULL, uValue, fKind, pvUser);
     663            rc = pfnCallback(pMod, iFunction + pExpDir->Base, NULL, 0, NULL, uValue, fKind, pvUser);
    662664            if (rc)
    663665                return rc;
Note: See TracChangeset for help on using the changeset viewer.