|
@@ -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);
|