From ffff484daa60f66bc5c7e5127b627693b2f4a839 Mon Sep 17 00:00:00 2001 From: Vijay Kiran Kamuju Date: Sat, 11 Apr 2020 15:43:09 -0500 Subject: [PATCH] qdvd: New stub DLL. Based on patch by Austin English. Signed-off-by: Vijay Kiran Kamuju Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- MAINTAINERS | 1 + configure | 2 ++ configure.ac | 1 + dlls/qdvd/Makefile.in | 6 ++++++ dlls/qdvd/qdvd.spec | 4 ++++ dlls/qdvd/qdvd_main.c | 47 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 61 insertions(+) create mode 100644 dlls/qdvd/Makefile.in create mode 100644 dlls/qdvd/qdvd.spec create mode 100644 dlls/qdvd/qdvd_main.c diff --git a/MAINTAINERS b/MAINTAINERS index 7f228f93bc5..dd55c12db8f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -109,6 +109,7 @@ F: dlls/amstream/ F: dlls/mciqtz32/ F: dlls/qasf/ F: dlls/qcap/ +F: dlls/qdvd/ F: dlls/qedit/ F: dlls/quartz/ F: dlls/strmbase/ diff --git a/configure b/configure index cf6609f7651..b41f1c797fb 100755 --- a/configure +++ b/configure @@ -1523,6 +1523,7 @@ enable_psapi enable_pstorec enable_qasf enable_qcap +enable_qdvd enable_qedit enable_qmgr enable_qmgrprxy @@ -20803,6 +20804,7 @@ wine_fn_config_makefile dlls/qasf enable_qasf wine_fn_config_makefile dlls/qasf/tests enable_tests wine_fn_config_makefile dlls/qcap enable_qcap wine_fn_config_makefile dlls/qcap/tests enable_tests +wine_fn_config_makefile dlls/qdvd enable_qdvd wine_fn_config_makefile dlls/qedit enable_qedit wine_fn_config_makefile dlls/qedit/tests enable_tests wine_fn_config_makefile dlls/qmgr enable_qmgr diff --git a/configure.ac b/configure.ac index fb775d7a73c..241ea82d836 100644 --- a/configure.ac +++ b/configure.ac @@ -3582,6 +3582,7 @@ WINE_CONFIG_MAKEFILE(dlls/qasf) WINE_CONFIG_MAKEFILE(dlls/qasf/tests) WINE_CONFIG_MAKEFILE(dlls/qcap) WINE_CONFIG_MAKEFILE(dlls/qcap/tests) +WINE_CONFIG_MAKEFILE(dlls/qdvd) WINE_CONFIG_MAKEFILE(dlls/qedit) WINE_CONFIG_MAKEFILE(dlls/qedit/tests) WINE_CONFIG_MAKEFILE(dlls/qmgr) diff --git a/dlls/qdvd/Makefile.in b/dlls/qdvd/Makefile.in new file mode 100644 index 00000000000..c4b7dcce1f0 --- /dev/null +++ b/dlls/qdvd/Makefile.in @@ -0,0 +1,6 @@ +MODULE = qdvd.dll + +EXTRADLLFLAGS = -mno-cygwin + +C_SRCS = \ + qdvd_main.c diff --git a/dlls/qdvd/qdvd.spec b/dlls/qdvd/qdvd.spec new file mode 100644 index 00000000000..c534b4fbf40 --- /dev/null +++ b/dlls/qdvd/qdvd.spec @@ -0,0 +1,4 @@ +@ stdcall -private DllCanUnloadNow() +@ stdcall -private DllGetClassObject(ptr ptr ptr) +@ stub DllRegisterServer +@ stub DllUnregisterServer diff --git a/dlls/qdvd/qdvd_main.c b/dlls/qdvd/qdvd_main.c new file mode 100644 index 00000000000..5c7368ce908 --- /dev/null +++ b/dlls/qdvd/qdvd_main.c @@ -0,0 +1,47 @@ +/* + * DirectShow DVD support + * + * Copyright 2009 Austin English + * + * 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" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(qdvd); + +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) +{ + if (reason == DLL_WINE_PREATTACH) + return FALSE; /* prefer native version */ + + if (reason == DLL_PROCESS_ATTACH) + DisableThreadLibraryCalls(instance); + return TRUE; +} + +HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID iid, void **out) +{ + FIXME("clsid %s, iid %s, out %p, stub!\n", debugstr_guid(clsid), debugstr_guid(iid), out); + return CLASS_E_CLASSNOTAVAILABLE; +} + +HRESULT WINAPI DllCanUnloadNow(void) +{ + return S_FALSE; +}