Showing the changes to src/core/util_string.cpp (1 of 1 file). Show all
Unified · Split
| @@ -675,8 +675,8 @@ t_CKBOOL str_endsin( const char * str, const char * end ) · 674 unmodified lines | |||
| 675 | t_CKBOOL is_absolute_path( const std::string & path ) | 675 | t_CKBOOL is_absolute_path( const std::string & path ) |
| 676 | { | 676 | { |
| 677 | #ifdef __PLATFORM_WIN32__ | 677 | #ifdef __PLATFORM_WIN32__ |
| 678 | // a little more involved in windows | 678 | // a little more involved in windows: [letter]:[/ or \] |
| 679 | if( path.length() >= 3 && path[1] == ':' && path[2] == '\\' ) | 679 | if( path.length() >= 3 && path[1] == ':' && ( path[2] == '\\' || path[2] == '/' ) ) |
| 680 | { | 680 | { |
| 681 | // check drive letter (apparently windows limited to 26 drive letters) | 681 | // check drive letter (apparently windows limited to 26 drive letters) |
| 682 | if( (path[0] >= 'a' && path[0] <= 'z') || (path[0] >= 'A' && path[0] <= 'Z') ) | 682 | if( (path[0] >= 'a' && path[0] <= 'z') || (path[0] >= 'A' && path[0] <= 'Z') ) |