瀏覽代碼

is_absolute_path and is_root_path fixed

mikymod 12 年之前
父節點
當前提交
71d8f7d5ac
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/os/win/WinOS.cpp

+ 2 - 2
src/os/win/WinOS.cpp

@@ -95,7 +95,7 @@ bool is_root_path(const char* path)
 
 	if (string::strlen(path) == 1)
 	{
-		if (path[0] == 'C')
+		if ((path[0] >= 65 && path[0] <= 90) || (path[0] >= 97 && path[0] <= 122))
 		{
 			return true;
 		}
@@ -111,7 +111,7 @@ bool is_absolute_path(const char* path)
 
 	if (string::strlen(path) > 0)
 	{
-		if (path[0] == 'C')
+		if ((path[0] >= 65 && path[0] <= 90) || (path[0] >= 97 && path[0] <= 122))
 		{
 			return true;
 		}