schtasks: Make /change argument case insensitive.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2018-01-09 13:08:06 +01:00 committed by Alexandre Julliard
parent 9519216fa0
commit a148e5555d
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ int wmain(int argc, WCHAR *argv[])
if (argc < 2)
FIXME("Print current tasks state\n");
else if (!strcmpW(argv[1], change_optW))
else if (!strcmpiW(argv[1], change_optW))
ret = change_command(argc - 2, argv + 2);
else
FIXME("Unsupported command %s\n", debugstr_w(argv[1]));

View File

@ -175,12 +175,12 @@ START_TEST(schtasks)
register_task("wine\\test\\winetest");
r = run_command("schtasks /change /tn wine\\test\\winetest /enable");
r = run_command("schtasks /CHANGE /tn wine\\test\\winetest /enable");
ok(r == 0, "r = %u\n", r);
unregister_task("wine\\test\\winetest");
r = run_command("schtasks /change /tn wine\\test\\winetest /enable");
r = run_command("schtasks /Change /tn wine\\test\\winetest /enable");
ok(r == 1, "r = %u\n", r);
ITaskFolder_Release(root);