fix GetExtension
This commit is contained in:
@@ -321,7 +321,7 @@ CString GetExtension( CString sPath )
|
|||||||
if( pos == sPath.npos )
|
if( pos == sPath.npos )
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
unsigned slash = sPath.find( '/', slash );
|
unsigned slash = sPath.find( '/', pos );
|
||||||
if( slash != sPath.npos )
|
if( slash != sPath.npos )
|
||||||
return ""; /* rare: path/dir.ext/fn */
|
return ""; /* rare: path/dir.ext/fn */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user