Changeset 21742 for branches/gcc-kmk/src


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

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

Location:
branches/gcc-kmk/src/kernel32
Files:
2 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);
  • branches/gcc-kmk/src/kernel32/oslibdos.h

    r21732 r21742  
    367367#endif
    368368
     369#ifdef __cplusplus
     370INLINE LPSTR ODINHelperStripUNC(LPSTR strUNC)
     371{
     372    return (LPSTR)ODINHelperStripUNC((LPCSTR) strUNC);
     373}
     374#endif
     375
    369376#endif //__OSLIBDOS_H__
    370377
Note: See TracChangeset for help on using the changeset viewer.