schtasks: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
826288aea3
commit
241c5fe8b6
|
@ -1,4 +1,3 @@
|
||||||
EXTRADEFS = -DWINE_NO_LONG_TYPES
|
|
||||||
MODULE = schtasks.exe
|
MODULE = schtasks.exe
|
||||||
IMPORTS = oleaut32 ole32
|
IMPORTS = oleaut32 ole32
|
||||||
|
|
||||||
|
|
|
@ -40,14 +40,14 @@ static ITaskFolder *get_tasks_root_folder(void)
|
||||||
V_VT(&empty) = VT_EMPTY;
|
V_VT(&empty) = VT_EMPTY;
|
||||||
hres = ITaskService_Connect(service, empty, empty, empty, empty);
|
hres = ITaskService_Connect(service, empty, empty, empty, empty);
|
||||||
if (FAILED(hres)) {
|
if (FAILED(hres)) {
|
||||||
FIXME("Connect failed: %08x\n", hres);
|
FIXME("Connect failed: %08lx\n", hres);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
hres = ITaskService_GetFolder(service, NULL, &root);
|
hres = ITaskService_GetFolder(service, NULL, &root);
|
||||||
ITaskService_Release(service);
|
ITaskService_Release(service);
|
||||||
if (FAILED(hres)) {
|
if (FAILED(hres)) {
|
||||||
FIXME("GetFolder failed: %08x\n", hres);
|
FIXME("GetFolder failed: %08lx\n", hres);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ static IRegisteredTask *get_registered_task(const WCHAR *name)
|
||||||
SysFreeString(str);
|
SysFreeString(str);
|
||||||
ITaskFolder_Release(root);
|
ITaskFolder_Release(root);
|
||||||
if (FAILED(hres)) {
|
if (FAILED(hres)) {
|
||||||
FIXME("GetTask failed: %08x\n", hres);
|
FIXME("GetTask failed: %08lx\n", hres);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ static int change_command(int argc, WCHAR *argv[])
|
||||||
hres = IRegisteredTask_put_Enabled(task, VARIANT_TRUE);
|
hres = IRegisteredTask_put_Enabled(task, VARIANT_TRUE);
|
||||||
if (FAILED(hres)) {
|
if (FAILED(hres)) {
|
||||||
IRegisteredTask_Release(task);
|
IRegisteredTask_Release(task);
|
||||||
FIXME("put_Enabled failed: %08x\n", hres);
|
FIXME("put_Enabled failed: %08lx\n", hres);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue