Dmitry Timoshkov : mstask: Make each source file self-contained.
Alexandre Julliard
julliard at winehq.org
Tue Mar 13 17:10:54 CDT 2018
Module: wine
Branch: master
Commit: eb408f2dd98ab9c27f45cdc18591911f6e8d9155
URL: https://source.winehq.org/git/wine.git/?a=commit;h=eb408f2dd98ab9c27f45cdc18591911f6e8d9155
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Tue Mar 13 16:04:01 2018 +0800
mstask: Make each source file self-contained.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mstask/Makefile.in | 2 +-
dlls/mstask/factory.c | 8 ++++++++
dlls/mstask/mstask_local.idl | 1 -
dlls/mstask/mstask_main.c | 11 +++++++----
dlls/mstask/mstask_private.h | 10 ----------
dlls/mstask/task.c | 8 ++++++++
dlls/mstask/task_scheduler.c | 14 +++++++++++---
dlls/mstask/task_trigger.c | 7 +++++++
8 files changed, 42 insertions(+), 19 deletions(-)
diff --git a/dlls/mstask/Makefile.in b/dlls/mstask/Makefile.in
index 55ab76d..72a6db3 100644
--- a/dlls/mstask/Makefile.in
+++ b/dlls/mstask/Makefile.in
@@ -1,5 +1,5 @@
MODULE = mstask.dll
-IMPORTS = uuid ole32
+IMPORTS = ole32
C_SRCS = \
factory.c \
diff --git a/dlls/mstask/factory.c b/dlls/mstask/factory.c
index f85a5f9..97a5113 100644
--- a/dlls/mstask/factory.c
+++ b/dlls/mstask/factory.c
@@ -16,6 +16,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#include <stdarg.h>
+
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
+#include "objbase.h"
+#include "mstask.h"
#include "mstask_private.h"
#include "wine/debug.h"
diff --git a/dlls/mstask/mstask_local.idl b/dlls/mstask/mstask_local.idl
index 98e060c..bf49728 100644
--- a/dlls/mstask/mstask_local.idl
+++ b/dlls/mstask/mstask_local.idl
@@ -16,7 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#pragma makedep ident
#pragma makedep register
#include "mstask.idl"
diff --git a/dlls/mstask/mstask_main.c b/dlls/mstask/mstask_main.c
index aa6693d..bb19b89 100644
--- a/dlls/mstask/mstask_main.c
+++ b/dlls/mstask/mstask_main.c
@@ -16,15 +16,18 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include <stdio.h>
+#include <stdarg.h>
-#include "mstask_private.h"
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
#include "objbase.h"
#include "rpcproxy.h"
-
+#include "mstask.h"
+#include "mstask_private.h"
#include "wine/debug.h"
-
WINE_DEFAULT_DEBUG_CHANNEL(mstask);
static HINSTANCE hInst;
diff --git a/dlls/mstask/mstask_private.h b/dlls/mstask/mstask_private.h
index 17c20fe..9180e4a 100644
--- a/dlls/mstask/mstask_private.h
+++ b/dlls/mstask/mstask_private.h
@@ -19,16 +19,6 @@
#ifndef __MSTASK_PRIVATE_H__
#define __MSTASK_PRIVATE_H__
-#include <stdarg.h>
-
-#define COBJMACROS
-
-#include "windef.h"
-#include "winbase.h"
-#include "winuser.h"
-#include "ole2.h"
-#include "mstask.h"
-
extern LONG dll_ref DECLSPEC_HIDDEN;
typedef struct ClassFactoryImpl ClassFactoryImpl;
diff --git a/dlls/mstask/task.c b/dlls/mstask/task.c
index 97ae8b7..872e445b 100644
--- a/dlls/mstask/task.c
+++ b/dlls/mstask/task.c
@@ -16,6 +16,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#include <stdarg.h>
+
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
+#include "objbase.h"
+#include "mstask.h"
#include "mstask_private.h"
#include "wine/debug.h"
diff --git a/dlls/mstask/task_scheduler.c b/dlls/mstask/task_scheduler.c
index 1f367ed..1c2d227 100644
--- a/dlls/mstask/task_scheduler.c
+++ b/dlls/mstask/task_scheduler.c
@@ -16,7 +16,15 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#include "corerror.h"
+#include <stdarg.h>
+
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
+#include "initguid.h"
+#include "objbase.h"
+#include "mstask.h"
#include "mstask_private.h"
#include "wine/debug.h"
@@ -268,8 +276,8 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_Activate(
{
TRACE("%p, %s, %s, %p: stub\n", iface, debugstr_w(pwszName),
debugstr_guid(riid), ppunk);
- FIXME("Partial stub always returning COR_E_FILENOTFOUND\n");
- return COR_E_FILENOTFOUND;
+ FIXME("Partial stub always returning ERROR_FILE_NOT_FOUND\n");
+ return HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
}
static HRESULT WINAPI MSTASK_ITaskScheduler_Delete(
diff --git a/dlls/mstask/task_trigger.c b/dlls/mstask/task_trigger.c
index 448cf08..9475e56 100644
--- a/dlls/mstask/task_trigger.c
+++ b/dlls/mstask/task_trigger.c
@@ -17,7 +17,14 @@
*/
#include <stdarg.h>
+
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
+#include "objbase.h"
#include "winternl.h"
+#include "mstask.h"
#include "mstask_private.h"
#include "wine/debug.h"
More information about the wine-cvs
mailing list