cmd.exe: Support TIME /T option.

This commit is contained in:
Jason Edmeades 2007-03-08 00:45:27 +00:00 committed by Alexandre Julliard
parent 988ef41da9
commit b6ed73b1ac
1 changed files with 7 additions and 4 deletions

View File

@ -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 ();