This commit is contained in:
Reckordp
2020-03-07 15:18:48 +07:00
parent 4687f8790c
commit f319c5fb26
+1 -1
View File
@@ -283,7 +283,7 @@ static int
mrb_file_is_absolute_path(const char *path)
{
#ifdef _WIN32
#define IS_PATHSEP(x) (x == '/' || x == '\')
#define IS_PATHSEP(x) (x == '/' || x == '\\')
if (strlen(path) < 3) return 0;
return (isalpha(path[0]) && path[1] == ':' && IS_PATHSEP(path[2]));
#undef IS_PATHSEP