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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Dec 8 11:07:36 CST 2015


Module: wine
Branch: master
Commit: 05bc632add5f6bc56de62632612eb10a1bff2725
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=05bc632add5f6bc56de62632612eb10a1bff2725

Author: Hugh McMaster <hugh.mcmaster at outlook.com>
Date:   Tue Dec  8 19:53:41 2015 +1100

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

Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/cmd/wcmdmain.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index ba7d9ca..bf988f5 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -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) {




More information about the wine-cvs mailing list