trailing dot any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1671
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( nPosDot > nPosUnix ) {
// the file name looks like "path/name.ext"
if ( pstrName )
if ( nPosDot > nPosUnix ) {
// the file name looks like "path/name.ext"
if ( pstrName )
- *pstrName = wxString(pszFileName + nPosUnix + 1, nPosDot - nPosUnix);
+ *pstrName = wxString(pszFileName + nPosUnix + 1, nPosDot - nPosUnix - 1);
if ( pstrExt )
*pstrExt = wxString(pszFileName + nPosDot + 1);
}
if ( pstrExt )
*pstrExt = wxString(pszFileName + nPosDot + 1);
}