qdvd: New stub DLL.

Based on patch by Austin English.

Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Vijay Kiran Kamuju 2020-04-11 15:43:09 -05:00 committed by Alexandre Julliard
parent 8cabd4785f
commit ffff484daa
6 changed files with 61 additions and 0 deletions

View File

@ -109,6 +109,7 @@ F: dlls/amstream/
F: dlls/mciqtz32/ F: dlls/mciqtz32/
F: dlls/qasf/ F: dlls/qasf/
F: dlls/qcap/ F: dlls/qcap/
F: dlls/qdvd/
F: dlls/qedit/ F: dlls/qedit/
F: dlls/quartz/ F: dlls/quartz/
F: dlls/strmbase/ F: dlls/strmbase/

2
configure vendored
View File

@ -1523,6 +1523,7 @@ enable_psapi
enable_pstorec enable_pstorec
enable_qasf enable_qasf
enable_qcap enable_qcap
enable_qdvd
enable_qedit enable_qedit
enable_qmgr enable_qmgr
enable_qmgrprxy 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/qasf/tests enable_tests
wine_fn_config_makefile dlls/qcap enable_qcap wine_fn_config_makefile dlls/qcap enable_qcap
wine_fn_config_makefile dlls/qcap/tests enable_tests 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 enable_qedit
wine_fn_config_makefile dlls/qedit/tests enable_tests wine_fn_config_makefile dlls/qedit/tests enable_tests
wine_fn_config_makefile dlls/qmgr enable_qmgr wine_fn_config_makefile dlls/qmgr enable_qmgr

View File

@ -3582,6 +3582,7 @@ WINE_CONFIG_MAKEFILE(dlls/qasf)
WINE_CONFIG_MAKEFILE(dlls/qasf/tests) WINE_CONFIG_MAKEFILE(dlls/qasf/tests)
WINE_CONFIG_MAKEFILE(dlls/qcap) WINE_CONFIG_MAKEFILE(dlls/qcap)
WINE_CONFIG_MAKEFILE(dlls/qcap/tests) WINE_CONFIG_MAKEFILE(dlls/qcap/tests)
WINE_CONFIG_MAKEFILE(dlls/qdvd)
WINE_CONFIG_MAKEFILE(dlls/qedit) WINE_CONFIG_MAKEFILE(dlls/qedit)
WINE_CONFIG_MAKEFILE(dlls/qedit/tests) WINE_CONFIG_MAKEFILE(dlls/qedit/tests)
WINE_CONFIG_MAKEFILE(dlls/qmgr) WINE_CONFIG_MAKEFILE(dlls/qmgr)

6
dlls/qdvd/Makefile.in Normal file
View File

@ -0,0 +1,6 @@
MODULE = qdvd.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
qdvd_main.c

4
dlls/qdvd/qdvd.spec Normal file
View File

@ -0,0 +1,4 @@
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stub DllRegisterServer
@ stub DllUnregisterServer

47
dlls/qdvd/qdvd_main.c Normal file
View File

@ -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 <stdarg.h>
#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;
}