Ignore:
Timestamp:
Jun 20, 2011, 5:17:25 PM (14 years ago)
Author:
dmik
Message:

kernel32: GetFileAttributesEx(): Interpret paths like 'X:' as 'X:\' instead of reporting an error, for compatibility with Win32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibdos.cpp

    r21604 r21638  
    806806  //Convert file name from Windows to OS/2 codepage
    807807  CharToOemA(ODINHelperStripUNC(pszName), pszOemName);
     808
     809  // Treat 'x:' as 'x:\', this is what GetFileAttributesEx() does on Win32
     810  // instead of returning an error as DosQueryPathInfo() does
     811  if (pszOemName[1] == ':' && pszOemName[2] == '\0') {
     812    pszOemName[2] = '\\';
     813    pszOemName[3] = '\0';
     814  }
    808815
    809816  // Note: we only handle standard "GetFileExInfoStandard" requests
Note: See TracChangeset for help on using the changeset viewer.