Module: wine
Branch: master
Commit: fbd446519c66045ea7efff761754683d88836b49
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fbd446519c66045ea7efff761…
Author: Nikolay Sivov <nsivov(a)codeweavers.com>
Date: Mon Mar 3 08:54:04 2014 +0400
fontsub: Added dll stub.
---
configure | 2 ++
configure.ac | 1 +
dlls/fontsub/Makefile.in | 4 ++++
dlls/fontsub/fontsub.spec | 2 ++
dlls/fontsub/main.c | 40 ++++++++++++++++++++++++++++++++++++++++
5 files changed, 49 insertions(+)
diff --git a/configure b/configure
index c6f4b39..dcd8581 100755
--- a/configure
+++ b/configure
@@ -1029,6 +1029,7 @@ enable_ext_ms_win_gdi_devcaps_l1_1_0
enable_faultrep
enable_fltlib
enable_fntcache
+enable_fontsub
enable_fusion
enable_fwpuclnt
enable_gameux
@@ -16852,6 +16853,7 @@ wine_fn_config_dll faultrep enable_faultrep implib
wine_fn_config_test dlls/faultrep/tests faultrep_test
wine_fn_config_dll fltlib enable_fltlib
wine_fn_config_dll fntcache enable_fntcache
+wine_fn_config_dll fontsub enable_fontsub
wine_fn_config_dll fusion enable_fusion
wine_fn_config_test dlls/fusion/tests fusion_test
wine_fn_config_dll fwpuclnt enable_fwpuclnt
diff --git a/configure.ac b/configure.ac
index 098a5bd..ee8cd1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2858,6 +2858,7 @@ WINE_CONFIG_DLL(faultrep,,[implib])
WINE_CONFIG_TEST(dlls/faultrep/tests)
WINE_CONFIG_DLL(fltlib)
WINE_CONFIG_DLL(fntcache)
+WINE_CONFIG_DLL(fontsub)
WINE_CONFIG_DLL(fusion)
WINE_CONFIG_TEST(dlls/fusion/tests)
WINE_CONFIG_DLL(fwpuclnt)
diff --git a/dlls/fontsub/Makefile.in b/dlls/fontsub/Makefile.in
new file mode 100644
index 0000000..ac323b5
--- /dev/null
+++ b/dlls/fontsub/Makefile.in
@@ -0,0 +1,4 @@
+MODULE = fontsub.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/fontsub/fontsub.spec b/dlls/fontsub/fontsub.spec
new file mode 100644
index 0000000..dfb47fb
--- /dev/null
+++ b/dlls/fontsub/fontsub.spec
@@ -0,0 +1,2 @@
+@ stub CreateFontPackage
+@ stub MergeFontPackage
diff --git a/dlls/fontsub/main.c b/dlls/fontsub/main.c
new file mode 100644
index 0000000..515c2d3
--- /dev/null
+++ b/dlls/fontsub/main.c
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2014 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"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(fontsub);
+
+BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved);
+
+ switch (fdwReason) {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ break;
+ }
+
+ return TRUE;
+}