Commit 48e35424 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

taskschd: Use wide-char string literals.

Also merge some strings. Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c5ff8ff2
......@@ -203,7 +203,6 @@ static HRESULT WINAPI TaskFolder_CreateFolder(ITaskFolder *iface, BSTR path, VAR
WCHAR *get_full_path(const WCHAR *parent, const WCHAR *path)
{
static const WCHAR bslash[] = { '\\', 0 };
WCHAR *folder_path;
int len = 0;
......@@ -224,7 +223,7 @@ WCHAR *get_full_path(const WCHAR *parent, const WCHAR *path)
{
len = lstrlenW(folder_path);
if (!len || folder_path[len - 1] != '\\')
lstrcatW(folder_path, bslash);
lstrcatW(folder_path, L"\\");
while (*path == '\\') path++;
lstrcatW(folder_path, path);
......@@ -232,7 +231,7 @@ WCHAR *get_full_path(const WCHAR *parent, const WCHAR *path)
len = lstrlenW(folder_path);
if (!len)
lstrcatW(folder_path, bslash);
lstrcatW(folder_path, L"\\");
return folder_path;
}
......
......@@ -357,11 +357,10 @@ HRESULT RegisteredTask_create(const WCHAR *path, const WCHAR *name, ITaskDefinit
}
else
{
static const WCHAR languages[] = { 0 };
DWORD count = 0;
WCHAR *xml = NULL;
hr = SchRpcRetrieveTask(full_name, languages, &count, &xml);
hr = SchRpcRetrieveTask(full_name, L"", &count, &xml);
if (hr != S_OK || (hr = ITaskDefinition_put_XmlText(definition, xml)) != S_OK)
{
heap_free(full_name);
......
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