Commit fdd0bfa1 authored by Sylvain Petreolle's avatar Sylvain Petreolle Committed by Alexandre Julliard

Fixed handling of PATH command with spaces.

parent 095322e2
......@@ -672,7 +672,7 @@ char buffer[1048];
* Set/Show the path environment variable
*/
void WCMD_setshow_path () {
void WCMD_setshow_path (char *command) {
char string[1024];
DWORD status;
......@@ -687,7 +687,7 @@ DWORD status;
}
}
else {
status = SetEnvironmentVariable ("PATH", param1);
status = SetEnvironmentVariable ("PATH", command);
if (!status) WCMD_print_error();
}
}
......
......@@ -60,7 +60,7 @@ void WCMD_setshow_attrib (void);
void WCMD_setshow_date (void);
void WCMD_setshow_default (void);
void WCMD_setshow_env (char *command);
void WCMD_setshow_path (void);
void WCMD_setshow_path (char *command);
void WCMD_setshow_prompt (void);
void WCMD_setshow_time (void);
void WCMD_shift (void);
......@@ -135,6 +135,3 @@ typedef struct {
/* Must be last in list */
#define WCMD_EXIT 36
......@@ -286,7 +286,7 @@ char *whichcmd;
WCMD_move ();
break;
case WCMD_PATH:
WCMD_setshow_path ();
WCMD_setshow_path (p);
break;
case WCMD_PAUSE:
WCMD_pause ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment