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:
parent
9519216fa0
commit
a148e5555d
|
@ -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]));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue