Changeset 1743


Ignore:
Timestamp:
Dec 16, 2004, 2:35:28 PM (21 years ago)
Author:
bird
Message:

DosQueryFSAttach and surounding code working on the wrong path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/sys/fs.c

    • Property cvs2svn:cvs-rev changed from 1.11 to 1.12
    r1742 r1743  
    854854         * Check if special OS/2 name.
    855855         */
    856         if (pszUserPath[0] == '/' || pszUserPath[0] == '\\')
     856        if (szTmp[0] == '/' || szTmp[0] == '\\')
    857857        {
    858858            int fDone = 0;
    859             if (    (pszUserPath[1] == 'p' || pszUserPath[1] == 'P')
    860                 &&  (pszUserPath[2] == 'i' || pszUserPath[2] == 'I')
    861                 &&  (pszUserPath[3] == 'p' || pszUserPath[3] == 'P')
    862                 &&  (pszUserPath[4] == 'e' || pszUserPath[4] == 'E')
    863                 &&  (pszUserPath[5] == '/' || pszUserPath[5] == '\\'))
     859            if (    (szTmp[1] == 'p' || szTmp[1] == 'P')
     860                &&  (szTmp[2] == 'i' || szTmp[2] == 'I')
     861                &&  (szTmp[3] == 'p' || szTmp[3] == 'P')
     862                &&  (szTmp[4] == 'e' || szTmp[4] == 'E')
     863                &&  (szTmp[5] == '/' || szTmp[5] == '\\'))
    864864                fDone = 1;
    865             else if ((pszUserPath[1]== 'd' || pszUserPath[1] == 'D')
    866                 &&  (pszUserPath[2] == 'e' || pszUserPath[2] == 'E')
    867                 &&  (pszUserPath[3] == 'v' || pszUserPath[3] == 'V')
    868                 &&  (pszUserPath[4] == '/' || pszUserPath[4] == '\\')
     865            else if ((szTmp[1]== 'd' || szTmp[1] == 'D')
     866                &&  (szTmp[2] == 'e' || szTmp[2] == 'E')
     867                &&  (szTmp[3] == 'v' || szTmp[3] == 'V')
     868                &&  (szTmp[4] == '/' || szTmp[4] == '\\')
    869869                )
    870870            {
    871                 PFSQBUFFER2 pfsqb = (PFSQBUFFER2)&szTmp[0];
    872                 ULONG       cb = sizeof(szTmp);
    873                 fDone = !DosQueryFSAttach((PCSZ)pszUserPath, 0, FSAIL_QUERYNAME, pfsqb, &cb);
     871                PFSQBUFFER2 pfsqb = (PFSQBUFFER2)pachBuffer;
     872                ULONG       cb = SIZEOF_ACHBUFFER;
     873                fDone = !DosQueryFSAttach((PCSZ)szTmp, 0, FSAIL_QUERYNAME, pfsqb, &cb);
    874874            }
    875875
     
    880880                if (cch <= PATH_MAX)
    881881                {
    882                     memcpy(szTmp, pszUserPath, cchTmp + 1);
    883882                    fsCleanPath(&szTmp[0], fFlags);
    884883                    rcRet = 0;
Note: See TracChangeset for help on using the changeset viewer.