From 3a724d58eba31666af3886d759371507f8cddd50 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 24 Jul 2012 14:05:18 +0400 Subject: [PATCH] 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(+) 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 b/configure index 0f0cc15849f..0cc7ae67f54 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 50e55139ab9..aa2b026a320 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 00000000000..7438d92fab1 --- /dev/null +++ b/dlls/dwrite/Makefile.in @@ -0,0 +1,6 @@ +MODULE = dwrite.dll + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ diff --git a/dlls/dwrite/dwrite.spec b/dlls/dwrite/dwrite.spec new file mode 100644 index 00000000000..36ae913f6d1 --- /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 00000000000..ed4c4ee403a --- /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 + +#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; +} -- 2.11.4.GIT