Module: wine Branch: master Commit: f06cb3e6c06a8e40e0e42d543fc94fa1036a9ddf URL: http://source.winehq.org/git/wine.git/?a=commit;h=f06cb3e6c06a8e40e0e42d543f...
Author: Andrew Nguyen arethusa26@gmail.com Date: Wed Dec 30 20:47:32 2009 -0600
cmd: Set the PROMPT environment variable on startup.
---
programs/cmd/wcmdmain.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c index 0e25deb..5f3a0ca 100644 --- a/programs/cmd/wcmdmain.c +++ b/programs/cmd/wcmdmain.c @@ -2189,6 +2189,8 @@ int wmain (int argc, WCHAR *argvW[]) int opt_t = 0; static const WCHAR autoexec[] = {'\','a','u','t','o','e','x','e','c','.', '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]; CMD_LIST *toExecute = NULL; /* Commands left to be executed */
@@ -2521,6 +2523,7 @@ int wmain (int argc, WCHAR *argvW[]) * Loop forever getting commands and executing them. */
+ SetEnvironmentVariableW(promptW, defaultpromptW); WCMD_version (); while (TRUE) {