Ignore:
Timestamp:
Oct 25, 2011, 7:13:55 PM (14 years ago)
Author:
dmik
Message:

Add C++ version of ODINHelperStripUNC() for non-const strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/kernel32/Fileio.cpp

    r21566 r21742  
    11841184  DWORD sp = 0, lp = 0,attr;
    11851185  LPSTR tmpshortpath,tmplongpath;
    1186   LPSTR lpszShortPath1, lpszLongPath1;
     1186  LPCSTR lpszShortPath1;
     1187  LPSTR lpszLongPath1;
    11871188
    11881189   dprintf(("GetLongPathNameA %s %x %d", lpszShortPath, lpszLongPath, cchBuffer));
     
    12031204   }
    12041205
    1205    lpszShortPath1 = ODINHelperStripUNC((char*)lpszShortPath);
    1206    lpszLongPath1 = ODINHelperStripUNC((char*)lpszLongPath);
     1206   lpszShortPath1 = ODINHelperStripUNC(lpszShortPath);
     1207   lpszLongPath1 = ODINHelperStripUNC(lpszLongPath);
    12071208
    12081209   lstrcpyA(tmpshortpath,lpszShortPath1);
Note: See TracChangeset for help on using the changeset viewer.