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

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2015-12-08 19:53:41 +11:00 committed by Alexandre Julliard
parent 748ac7a414
commit 05bc632add
1 changed files with 2 additions and 1 deletions

View File

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