VirtualBox

Changeset 865 in kBuild


Ignore:
Timestamp:
Mar 30, 2007 1:52:19 AM (18 years ago)
Author:
bird
Message:

win.amd64 fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/kDep.c

    r785 r865  
    9999            printf("my_assert: %s, file %s, line %d\npszPath=%s\npsz=%s\n", \
    100100                   #expr, __FILE__, __LINE__, pszPath, psz); \
    101             __asm { __asm int 3 } \
     101            __debugbreak(); \
    102102            exit(1); \
    103103        } \
     
    160160        char chSaved1;
    161161        char *pszEnd;
    162         int cch;
     162        size_t cch;
    163163        int iLongNameDiff;
    164164
     
    185185        }
    186186        pszEnd[0] = '\0';
    187         while (   (iLongNameDiff = stricmp(FindFileData.cFileName, psz))
    188                && stricmp(FindFileData.cAlternateFileName, psz))
     187        while (   (iLongNameDiff = _stricmp(FindFileData.cFileName, psz))
     188               && _stricmp(FindFileData.cAlternateFileName, psz))
    189189        {
    190190            if (!FindNextFile(hDir, &FindFileData))
     
    200200        {
    201201            /* replace spacy name with the short name. */
    202             const int cchAlt = strlen(FindFileData.cAlternateFileName);
    203             const int cchDelta = cch - cchAlt;
     202            const size_t cchAlt = strlen(FindFileData.cAlternateFileName);
     203            const size_t cchDelta = cch - cchAlt;
    204204            my_assert(cchAlt > 0);
    205205            if (!cchDelta)
    206206                memcpy(psz, FindFileData.cAlternateFileName, cch);
    207207            else
    208             {   int cbLeft = strlen(pszEnd) + 1;
     208            {   
     209                size_t cbLeft = strlen(pszEnd) + 1;
    209210                if ((psz - pszPath) + cbLeft + cchAlt <= _MAX_PATH)
    210211                {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette