Added dwrite.dll stub

Nikolay Sivov nsivov at codeweavers.com
Tue Jul 24 04:15:59 CDT 2012


Added dwrite.dll stub
-------------- next part --------------
>From b7ca70b7a56f749d47749e0e1313a6c041064e60 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue, 24 Jul 2012 13:08:20 +0400
Subject: [PATCH 4/4] Added dwrite.dll stub

---
 configure.ac            |    1 +
 dlls/dwrite/Makefile.in |    7 +++++++
 dlls/dwrite/dwrite.spec |    1 +
 dlls/dwrite/main.c      |   35 +++++++++++++++++++++++++++++++++++
 4 files changed, 44 insertions(+), 0 deletions(-)
 create mode 100644 dlls/dwrite/Makefile.in
 create mode 100644 dlls/dwrite/dwrite.spec
 create mode 100644 dlls/dwrite/main.c

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..5d86fea
--- /dev/null
+++ b/dlls/dwrite/Makefile.in
@@ -0,0 +1,7 @@
+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..36ae913
--- /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..5a9ad59
--- /dev/null
+++ b/dlls/dwrite/main.c
@@ -0,0 +1,35 @@
+/*
+ *    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 "windef.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;
+}
+
-- 
1.5.6.5




More information about the wine-patches mailing list