Commit 05bc632a authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

cmd: Do not overwrite a user-specified Prompt variable.

parent 748ac7a4
......@@ -2422,6 +2422,8 @@ int wmain (int argc, WCHAR *argvW[])
/* Until we start to read from the keyboard, stay as non-interactive */
interactive = FALSE;
SetEnvironmentVariableW(promptW, defaultpromptW);
if (opt_c || opt_k) {
int len;
WCHAR *q1 = NULL,*q2 = NULL,*p;
......@@ -2683,7 +2685,6 @@ int wmain (int argc, WCHAR *argvW[])
* Loop forever getting commands and executing them.
*/
SetEnvironmentVariableW(promptW, defaultpromptW);
interactive = TRUE;
if (!opt_k) WCMD_version ();
while (TRUE) {
......
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