mstask: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
39c9a45173
commit
da15e5cb37
|
@ -1,6 +1,8 @@
|
||||||
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 @@
|
||||||
#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)
|
||||||
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
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue