Explorar o código

Revert "#IQRV #comment 环境变量去除imdep和dev的设置"

This reverts commit ab52439398c9763dd8844b92647413d64be41d7c.
80374374 hai 1 ano
pai
achega
358a6139fd
Modificáronse 1 ficheiros con 9 adicións e 9 borrados
  1. 9 9
      Framework/spshell/spshell.cpp

+ 9 - 9
Framework/spshell/spshell.cpp

@@ -202,15 +202,15 @@ static void SetEnvPath()
 	strcat(buf+size, ENV_SEP_STR);
 	strcat(buf+size, path);
 	
-	//*strrchr(path, SPLIT_SLASH) = 0;
-	//strcat(path, SPLIT_SLASH_STR "dev");
-	//strcat(buf+size, ENV_SEP_STR);
-	//strcat(buf+size, path);
-
-	//*strrchr(path, SPLIT_SLASH) = 0;
-	//strcat(path, SPLIT_SLASH_STR "imdep");
-	//strcat(buf + size, ENV_SEP_STR);
-	//strcat(buf + size, path);
+	*strrchr(path, SPLIT_SLASH) = 0;
+	strcat(path, SPLIT_SLASH_STR "dev");
+	strcat(buf+size, ENV_SEP_STR);
+	strcat(buf+size, path);
+
+	*strrchr(path, SPLIT_SLASH) = 0;
+	strcat(path, SPLIT_SLASH_STR "imdep");
+	strcat(buf + size, ENV_SEP_STR);
+	strcat(buf + size, path);
 
 	SetEnvironmentVariableA(var, buf);
 	free(buf);