[PATCH] odbcbcp: add new stub dll

Louis Lenders xerox.xerox2000x at gmail.com
Fri Dec 6 12:17:11 CST 2019



https://bugs.winehq.org/show_bug.cgi?id=48234


Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
---
 configure                 |  2 ++
 configure.ac              |  1 +
 dlls/odbcbcp/Makefile.in  |  6 ++++++
 dlls/odbcbcp/main.c       | 40 +++++++++++++++++++++++++++++++++++++++
 dlls/odbcbcp/odbcbcp.spec | 28 +++++++++++++++++++++++++++
 5 files changed, 77 insertions(+)
 create mode 100644 dlls/odbcbcp/Makefile.in
 create mode 100644 dlls/odbcbcp/main.c
 create mode 100644 dlls/odbcbcp/odbcbcp.spec

diff --git a/configure b/configure
index 822669da7e..576500d8af 100755
--- a/configure
+++ b/configure
@@ -1493,6 +1493,7 @@ enable_ntoskrnl_exe
 enable_ntprint
 enable_objsel
 enable_odbc32
+enable_odbcbcp
 enable_odbccp32
 enable_odbccu32
 enable_ole32
@@ -20702,6 +20703,7 @@ wine_fn_config_makefile dlls/ntprint enable_ntprint
 wine_fn_config_makefile dlls/ntprint/tests enable_tests
 wine_fn_config_makefile dlls/objsel enable_objsel
 wine_fn_config_makefile dlls/odbc32 enable_odbc32
+wine_fn_config_makefile dlls/odbcbcp enable_odbcbcp
 wine_fn_config_makefile dlls/odbccp32 enable_odbccp32
 wine_fn_config_makefile dlls/odbccp32/tests enable_tests
 wine_fn_config_makefile dlls/odbccu32 enable_odbccu32
diff --git a/configure.ac b/configure.ac
index 7f2c3cda23..a002788041 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3557,6 +3557,7 @@ WINE_CONFIG_MAKEFILE(dlls/ntprint)
 WINE_CONFIG_MAKEFILE(dlls/ntprint/tests)
 WINE_CONFIG_MAKEFILE(dlls/objsel)
 WINE_CONFIG_MAKEFILE(dlls/odbc32)
+WINE_CONFIG_MAKEFILE(dlls/odbcbcp)
 WINE_CONFIG_MAKEFILE(dlls/odbccp32)
 WINE_CONFIG_MAKEFILE(dlls/odbccp32/tests)
 WINE_CONFIG_MAKEFILE(dlls/odbccu32)
diff --git a/dlls/odbcbcp/Makefile.in b/dlls/odbcbcp/Makefile.in
new file mode 100644
index 0000000000..c0269cb5a9
--- /dev/null
+++ b/dlls/odbcbcp/Makefile.in
@@ -0,0 +1,6 @@
+MODULE    = odbcbcp.dll
+
+EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+	main.c
diff --git a/dlls/odbcbcp/main.c b/dlls/odbcbcp/main.c
new file mode 100644
index 0000000000..ef7920765d
--- /dev/null
+++ b/dlls/odbcbcp/main.c
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2019 Louis Lenders
+ *
+ * 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(odbcbcp);
+
+BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, LPVOID reserved)
+{
+    TRACE("(%p, %d, %p)\n", dll, reason, reserved);
+
+    switch (reason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE;    /* prefer native version */
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls(dll);
+        break;
+    }
+    return TRUE;
+}
diff --git a/dlls/odbcbcp/odbcbcp.spec b/dlls/odbcbcp/odbcbcp.spec
new file mode 100644
index 0000000000..abaeff1003
--- /dev/null
+++ b/dlls/odbcbcp/odbcbcp.spec
@@ -0,0 +1,28 @@
+@ stub bcp_batch
+@ stub bcp_bind
+@ stub bcp_colfmt
+@ stub bcp_collen
+@ stub bcp_colptr
+@ stub bcp_columns
+@ stub bcp_control
+@ stub bcp_done
+@ stub bcp_exec
+@ stub bcp_getcolfmt
+@ stub bcp_initA
+@ stub bcp_initW
+@ stub bcp_moretext
+@ stub bcp_readfmtA
+@ stub bcp_readfmtW
+@ stub bcp_sendrow
+@ stub bcp_setcolfmt
+@ stub bcp_writefmtA
+@ stub bcp_writefmtW
+@ stub dbprtypeA
+@ stub dbprtypeW
+@ stub LibMain
+@ stub SQLCloseEnumServers
+@ stub SQLGetNextEnumeration
+@ stub SQLInitEnumServers
+@ stub SQLLinkedCatalogsA
+@ stub SQLLinkedCatalogsW
+@ stub SQLLinkedServers

-- 
2.24.0




More information about the wine-devel mailing list