Nikolay Sivov : dwrite: Added initial stub.

Alexandre Julliard julliard at winehq.org
Tue Jul 24 14:39:29 CDT 2012


Module: wine
Branch: master
Commit: 3a724d58eba31666af3886d759371507f8cddd50
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3a724d58eba31666af3886d759371507f8cddd50

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Jul 24 14:05:18 2012 +0400

dwrite: Added initial stub.

---

 configure               |    1 +
 configure.ac            |    1 +
 dlls/dwrite/Makefile.in |    6 ++++++
 dlls/dwrite/dwrite.spec |    1 +
 dlls/dwrite/main.c      |   37 +++++++++++++++++++++++++++++++++++++
 5 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 0f0cc15..0cc7ae6 100755
--- a/configure
+++ b/configure
@@ -15209,6 +15209,7 @@ wine_fn_config_dll dssenh enable_dssenh
 wine_fn_config_test dlls/dssenh/tests dssenh_test
 wine_fn_config_dll dswave enable_dswave
 wine_fn_config_dll dwmapi enable_dwmapi implib
+wine_fn_config_dll dwrite enable_dwrite
 wine_fn_config_dll dxdiagn enable_dxdiagn po
 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
 wine_fn_config_lib dxerr8
diff --git a/configure.ac b/configure.ac
index 50e5513..aa2b026 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2614,6 +2614,7 @@ WINE_CONFIG_DLL(dssenh)
 WINE_CONFIG_TEST(dlls/dssenh/tests)
 WINE_CONFIG_DLL(dswave)
 WINE_CONFIG_DLL(dwmapi,,[implib])
+WINE_CONFIG_DLL(dwrite)
 WINE_CONFIG_DLL(dxdiagn,,[po])
 WINE_CONFIG_TEST(dlls/dxdiagn/tests)
 WINE_CONFIG_LIB(dxerr8)
diff --git a/dlls/dwrite/Makefile.in b/dlls/dwrite/Makefile.in
new file mode 100644
index 0000000..7438d92
--- /dev/null
+++ b/dlls/dwrite/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = dwrite.dll
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/dwrite/dwrite.spec b/dlls/dwrite/dwrite.spec
new file mode 100644
index 0000000..36ae913f
--- /dev/null
+++ b/dlls/dwrite/dwrite.spec
@@ -0,0 +1 @@
+@ stub DWriteCreateFactory
diff --git a/dlls/dwrite/main.c b/dlls/dwrite/main.c
new file mode 100644
index 0000000..ed4c4ee
--- /dev/null
+++ b/dlls/dwrite/main.c
@@ -0,0 +1,37 @@
+/*
+ *    DWrite
+ *
+ * Copyright 2012 Nikolay Sivov for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
+{
+    switch (reason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE;  /* prefer native version */
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls( hinstDLL );
+        break;
+    }
+    return TRUE;
+}




More information about the wine-cvs mailing list