Commit b6ed73b1 authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

cmd.exe: Support TIME /T option.

parent 988ef41d
...@@ -1311,10 +1311,13 @@ void WCMD_setshow_time (void) { ...@@ -1311,10 +1311,13 @@ void WCMD_setshow_time (void) {
GetLocalTime(&st); GetLocalTime(&st);
if (GetTimeFormat (LOCALE_USER_DEFAULT, 0, &st, NULL, if (GetTimeFormat (LOCALE_USER_DEFAULT, 0, &st, NULL,
curtime, sizeof(curtime))) { curtime, sizeof(curtime))) {
WCMD_output ("Current Time is %s\nEnter new time: ", curtime); WCMD_output ("Current Time is %s\n", curtime);
ReadFile (GetStdHandle(STD_INPUT_HANDLE), buffer, sizeof(buffer), &count, NULL); if (strstr (quals, "/T") == NULL) {
if (count > 2) { WCMD_output ("Enter new time: ", curtime);
WCMD_output (nyi); ReadFile (GetStdHandle(STD_INPUT_HANDLE), buffer, sizeof(buffer), &count, NULL);
if (count > 2) {
WCMD_output (nyi);
}
} }
} }
else WCMD_print_error (); else WCMD_print_error ();
......
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