From 5fcbf47b73bc1fddf7141a9fe01dd727f4df56ff Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 13 Oct 2020 04:42:23 -0500 Subject: [PATCH] qdv: add stub dll Signed-off-by: Austin English --- configure.ac | 1 + dlls/qdv/Makefile.in | 8 ++++++++ dlls/qdv/qdv.spec | 4 ++++ dlls/qdv/qdv_main.c | 42 ++++++++++++++++++++++++++++++++++++++++++ dlls/qdv/version.rc | 26 ++++++++++++++++++++++++++ 5 files changed, 81 insertions(+) create mode 100644 dlls/qdv/Makefile.in create mode 100644 dlls/qdv/qdv.spec create mode 100644 dlls/qdv/qdv_main.c create mode 100644 dlls/qdv/version.rc diff --git a/configure.ac b/configure.ac index c1d9a23e889..2bb8c05cbcb 100644 --- a/configure.ac +++ b/configure.ac @@ -3604,6 +3604,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/qdv) WINE_CONFIG_MAKEFILE(dlls/qdvd) WINE_CONFIG_MAKEFILE(dlls/qdvd/tests) WINE_CONFIG_MAKEFILE(dlls/qedit) diff --git a/dlls/qdv/Makefile.in b/dlls/qdv/Makefile.in new file mode 100644 index 00000000000..23445040599 --- /dev/null +++ b/dlls/qdv/Makefile.in @@ -0,0 +1,8 @@ +MODULE = qdv.dll + +EXTRADLLFLAGS = -mno-cygwin + +C_SRCS = \ + qdv_main.c + +RC_SRCS = version.rc diff --git a/dlls/qdv/qdv.spec b/dlls/qdv/qdv.spec new file mode 100644 index 00000000000..a043605127d --- /dev/null +++ b/dlls/qdv/qdv.spec @@ -0,0 +1,4 @@ +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub DllRegisterServer +@ stub DllUnregisterServer \ No newline at end of file diff --git a/dlls/qdv/qdv_main.c b/dlls/qdv/qdv_main.c new file mode 100644 index 00000000000..074230acf59 --- /dev/null +++ b/dlls/qdv/qdv_main.c @@ -0,0 +1,42 @@ +/* + * + * Copyright 2020 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(qdv); + +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) +{ + TRACE("(%p, %u, %p)\n", instance, reason, reserved); + + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(instance); + break; + } + + return TRUE; +} diff --git a/dlls/qdv/version.rc b/dlls/qdv/version.rc new file mode 100644 index 00000000000..6cf198362a8 --- /dev/null +++ b/dlls/qdv/version.rc @@ -0,0 +1,26 @@ +/* + * Copyright 2020 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 + */ + +#define WINE_FILEDESCRIPTION_STR "Wine qdv" +#define WINE_FILENAME_STR "qdv.dll" +#define WINE_FILEVERSION 5,3,2600,5512 +#define WINE_FILEVERSION_STR "5.3.2600.5512" +#define WINE_PRODUCTVERSION 5,3,2600,5512 +#define WINE_PRODUCTVERSION_STR "5.3.2600.5512" + +#include "wine/wine_common_ver.rc" -- 2.29.2