Jason Edmeades : cmd.exe: Support TIME /T option.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Mar 8 07:17:09 CST 2007
Module: wine
Branch: master
Commit: b6ed73b1acb0211c2ee646f189729e966094cc83
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b6ed73b1acb0211c2ee646f189729e966094cc83
Author: Jason Edmeades <us at edmeades.me.uk>
Date: Thu Mar 8 00:45:27 2007 +0000
cmd.exe: Support TIME /T option.
---
programs/cmd/builtins.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index cdedc8a..4c80289 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -1311,10 +1311,13 @@ void WCMD_setshow_time (void) {
GetLocalTime(&st);
if (GetTimeFormat (LOCALE_USER_DEFAULT, 0, &st, NULL,
curtime, sizeof(curtime))) {
- WCMD_output ("Current Time is %s\nEnter new time: ", curtime);
- ReadFile (GetStdHandle(STD_INPUT_HANDLE), buffer, sizeof(buffer), &count, NULL);
- if (count > 2) {
- WCMD_output (nyi);
+ WCMD_output ("Current Time is %s\n", curtime);
+ if (strstr (quals, "/T") == NULL) {
+ WCMD_output ("Enter new time: ", curtime);
+ ReadFile (GetStdHandle(STD_INPUT_HANDLE), buffer, sizeof(buffer), &count, NULL);
+ if (count > 2) {
+ WCMD_output (nyi);
+ }
}
}
else WCMD_print_error ();
More information about the wine-cvs
mailing list