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