Commit f06cb3e6 authored by Andrew Nguyen's avatar Andrew Nguyen Committed by Alexandre Julliard

cmd: Set the PROMPT environment variable on startup.

parent 0d61dd8c
...@@ -2189,6 +2189,8 @@ int wmain (int argc, WCHAR *argvW[]) ...@@ -2189,6 +2189,8 @@ int wmain (int argc, WCHAR *argvW[])
int opt_t = 0; int opt_t = 0;
static const WCHAR autoexec[] = {'\\','a','u','t','o','e','x','e','c','.', static const WCHAR autoexec[] = {'\\','a','u','t','o','e','x','e','c','.',
'b','a','t','\0'}; 'b','a','t','\0'};
static const WCHAR promptW[] = {'P','R','O','M','P','T','\0'};
static const WCHAR defaultpromptW[] = {'$','P','$','G','\0'};
char ansiVersion[100]; char ansiVersion[100];
CMD_LIST *toExecute = NULL; /* Commands left to be executed */ CMD_LIST *toExecute = NULL; /* Commands left to be executed */
...@@ -2521,6 +2523,7 @@ int wmain (int argc, WCHAR *argvW[]) ...@@ -2521,6 +2523,7 @@ int wmain (int argc, WCHAR *argvW[])
* Loop forever getting commands and executing them. * Loop forever getting commands and executing them.
*/ */
SetEnvironmentVariableW(promptW, defaultpromptW);
WCMD_version (); WCMD_version ();
while (TRUE) { 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