Ignore:
Timestamp:
Sep 9, 2012, 8:02:54 PM (13 years ago)
Author:
bird
Message:

kash: fixed shfile_opendir on windows, and thereby argument expansion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shfile.c

    r2652 r2653  
    18081808    shdir  *pdir = NULL;
    18091809
     1810    TRACE2((NULL, "shfile_opendir: dir='%s'\n", dir));
     1811    shfile_init_globals();
    18101812    if (g_pfnNtQueryDirectoryFile)
    18111813    {
     
    18401842            }
    18411843            else
    1842                 shfile_dos2errno(GetLastError());
     1844            {
     1845                errno = shfile_dos2errno(GetLastError());
     1846                TRACE2((NULL, "shfile_opendir: CreateFileA(%s) -> %d/%d\n", abspath, GetLastError(), errno));
     1847            }
    18431848        }
    18441849    }
     
    18471852    return pdir;
    18481853#else
     1854    TRACE2((NULL, "shfile_opendir: dir='%s'\n", dir));
    18491855    return (shdir *)opendir(dir);
    18501856#endif
Note: See TracChangeset for help on using the changeset viewer.