Commit da15e5cb authored by Alexandre Julliard's avatar Alexandre Julliard

mstask: Build with msvcrt.

parent 39c9a451
MODULE = mstask.dll MODULE = mstask.dll
IMPORTS = rpcrt4 ole32 oleaut32 IMPORTS = rpcrt4 ole32 oleaut32
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \ C_SRCS = \
factory.c \ factory.c \
mstask_main.c \ mstask_main.c \
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#define __MSTASK_PRIVATE_H__ #define __MSTASK_PRIVATE_H__
#include "wine/heap.h" #include "wine/heap.h"
#include "wine/unicode.h"
extern LONG dll_ref DECLSPEC_HIDDEN; extern LONG dll_ref DECLSPEC_HIDDEN;
...@@ -38,7 +37,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *src) ...@@ -38,7 +37,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *src)
WCHAR *dst; WCHAR *dst;
unsigned len; unsigned len;
if (!src) return NULL; if (!src) return NULL;
len = (strlenW(src) + 1) * sizeof(WCHAR); len = (lstrlenW(src) + 1) * sizeof(WCHAR);
if ((dst = heap_alloc(len))) memcpy(dst, src, len); if ((dst = heap_alloc(len))) memcpy(dst, src, len);
return dst; return dst;
} }
......
...@@ -1813,10 +1813,10 @@ static HRESULT WINAPI MSTASK_IPersistFile_GetCurFile(IPersistFile *iface, LPOLES ...@@ -1813,10 +1813,10 @@ static HRESULT WINAPI MSTASK_IPersistFile_GetCurFile(IPersistFile *iface, LPOLES
TRACE("(%p, %p)\n", iface, file_name); TRACE("(%p, %p)\n", iface, file_name);
*file_name = CoTaskMemAlloc((strlenW(This->task_name) + 1) * sizeof(WCHAR)); *file_name = CoTaskMemAlloc((lstrlenW(This->task_name) + 1) * sizeof(WCHAR));
if (!*file_name) return E_OUTOFMEMORY; if (!*file_name) return E_OUTOFMEMORY;
strcpyW(*file_name, This->task_name); lstrcpyW(*file_name, This->task_name);
return S_OK; return S_OK;
} }
...@@ -1893,7 +1893,7 @@ HRESULT TaskConstructor(ITaskService *service, const WCHAR *name, ITask **task) ...@@ -1893,7 +1893,7 @@ HRESULT TaskConstructor(ITaskService *service, const WCHAR *name, ITask **task)
TRACE("(%s, %p)\n", debugstr_w(name), task); TRACE("(%s, %p)\n", debugstr_w(name), task);
if (strchrW(name, '.')) return E_INVALIDARG; if (wcschr(name, '.')) return E_INVALIDARG;
GetWindowsDirectoryW(task_name, MAX_PATH); GetWindowsDirectoryW(task_name, MAX_PATH);
lstrcatW(task_name, tasksW); lstrcatW(task_name, tasksW);
......
...@@ -423,7 +423,7 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_Delete(ITaskScheduler *iface, LPCWST ...@@ -423,7 +423,7 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_Delete(ITaskScheduler *iface, LPCWST
TRACE("%p, %s\n", iface, debugstr_w(name)); TRACE("%p, %s\n", iface, debugstr_w(name));
if (strchrW(name, '.')) return E_INVALIDARG; if (wcschr(name, '.')) return E_INVALIDARG;
GetWindowsDirectoryW(task_name, MAX_PATH); GetWindowsDirectoryW(task_name, MAX_PATH);
lstrcatW(task_name, tasksW); lstrcatW(task_name, tasksW);
...@@ -467,7 +467,7 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_AddWorkItem(ITaskScheduler *iface, L ...@@ -467,7 +467,7 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_AddWorkItem(ITaskScheduler *iface, L
TRACE("%p, %s, %p\n", iface, debugstr_w(name), item); TRACE("%p, %s, %p\n", iface, debugstr_w(name), item);
if (strchrW(name, '.')) return E_INVALIDARG; if (wcschr(name, '.')) return E_INVALIDARG;
GetWindowsDirectoryW(task_name, MAX_PATH); GetWindowsDirectoryW(task_name, MAX_PATH);
lstrcatW(task_name, tasksW); lstrcatW(task_name, tasksW);
......
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