[PATCH] qwave: add new stub dll

Louis Lenders xerox.xerox2000x at gmail.com
Wed Oct 31 11:04:46 CDT 2018


fix for https://bugs.winehq.org/show_bug.cgi?id=46066

this dll seems to be present on winversions >= winVista (on
testbots)


Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
---
 configure              |  2 ++
 configure.ac           |  1 +
 dlls/qwave/Makefile.in |  4 ++++
 dlls/qwave/main.c      | 41 +++++++++++++++++++++++++++++++++++++++++
 dlls/qwave/qwave.spec  | 14 ++++++++++++++
 5 files changed, 62 insertions(+)
 create mode 100644 dlls/qwave/Makefile.in
 create mode 100644 dlls/qwave/main.c
 create mode 100644 dlls/qwave/qwave.spec

diff --git a/configure b/configure
index 9d4a7a8b78..780c5c475d 100755
--- a/configure
+++ b/configure
@@ -1486,6 +1486,7 @@ enable_qmgr
 enable_qmgrprxy
 enable_quartz
 enable_query
+enable_qwave
 enable_rasapi32
 enable_rasdlg
 enable_regapi
@@ -19758,6 +19759,7 @@ wine_fn_config_makefile dlls/qmgrprxy enable_qmgrprxy
 wine_fn_config_makefile dlls/quartz enable_quartz
 wine_fn_config_makefile dlls/quartz/tests enable_tests
 wine_fn_config_makefile dlls/query enable_query
+wine_fn_config_makefile dlls/qwave enable_qwave
 wine_fn_config_makefile dlls/rasapi16.dll16 enable_win16
 wine_fn_config_makefile dlls/rasapi32 enable_rasapi32
 wine_fn_config_makefile dlls/rasapi32/tests enable_tests
diff --git a/configure.ac b/configure.ac
index b64d99e9d1..82a3c46a24 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3611,6 +3611,7 @@ WINE_CONFIG_MAKEFILE(dlls/qmgrprxy)
 WINE_CONFIG_MAKEFILE(dlls/quartz)
 WINE_CONFIG_MAKEFILE(dlls/quartz/tests)
 WINE_CONFIG_MAKEFILE(dlls/query)
+WINE_CONFIG_MAKEFILE(dlls/qwave)
 WINE_CONFIG_MAKEFILE(dlls/rasapi16.dll16,enable_win16)
 WINE_CONFIG_MAKEFILE(dlls/rasapi32)
 WINE_CONFIG_MAKEFILE(dlls/rasapi32/tests)
diff --git a/dlls/qwave/Makefile.in b/dlls/qwave/Makefile.in
new file mode 100644
index 0000000000..9de8224697
--- /dev/null
+++ b/dlls/qwave/Makefile.in
@@ -0,0 +1,4 @@
+MODULE    = qwave.dll
+
+C_SRCS = \
+	main.c
diff --git a/dlls/qwave/main.c b/dlls/qwave/main.c
new file mode 100644
index 0000000000..ce1cfbd670
--- /dev/null
+++ b/dlls/qwave/main.c
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2018 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 "config.h"
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qwave);
+
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD reason, LPVOID lpv)
+{
+    TRACE("(%p, %d, %p)\n", hInstDLL, reason, lpv);
+
+    switch (reason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE;    /* prefer native version */
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls(hInstDLL);
+        break;
+    }
+    return TRUE;
+}
diff --git a/dlls/qwave/qwave.spec b/dlls/qwave/qwave.spec
new file mode 100644
index 0000000000..27b07f55d6
--- /dev/null
+++ b/dlls/qwave/qwave.spec
@@ -0,0 +1,14 @@
+@ stub QDLHPathDiagnostics
+@ stub QDLHStartDiagnosingPath
+@ stub QOSAddSocketToFlow
+@ stub QOSCancel
+@ stub QOSCloseHandle
+@ stub QOSCreateHandle
+@ stub QOSEnumerateFlows
+@ stub QOSNotifyFlow
+@ stub QOSQueryFlow
+@ stub QOSRemoveSocketFromFlow
+@ stub QOSSetFlow
+@ stub QOSStartTrackingClient
+@ stub QOSStopTrackingClient
+@ stub ServiceMain
-- 
2.17.1




More information about the wine-devel mailing list