From 26163e8bd3dccff151f336e81e620b5898316af7 Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 13 Oct 2020 04:44:22 -0500 Subject: [PATCH] dsdmoprp: add stub dll Signed-off-by: Austin English --- configure.ac | 1 + dlls/dsdmoprp/Makefile.in | 8 +++++++ dlls/dsdmoprp/dsdmoprp.spec | 4 ++++ dlls/dsdmoprp/dsdmoprp_main.c | 42 +++++++++++++++++++++++++++++++++++ dlls/dsdmoprp/version.rc | 26 ++++++++++++++++++++++ 5 files changed, 81 insertions(+) create mode 100644 dlls/dsdmoprp/Makefile.in create mode 100644 dlls/dsdmoprp/dsdmoprp.spec create mode 100644 dlls/dsdmoprp/dsdmoprp_main.c create mode 100644 dlls/dsdmoprp/version.rc diff --git a/configure.ac b/configure.ac index e8505848dc3..5305312d2aa 100644 --- a/configure.ac +++ b/configure.ac @@ -3212,6 +3212,7 @@ WINE_CONFIG_MAKEFILE(dlls/dpwsockx) WINE_CONFIG_MAKEFILE(dlls/drmclien) WINE_CONFIG_MAKEFILE(dlls/dsdmo) WINE_CONFIG_MAKEFILE(dlls/dsdmo/tests) +WINE_CONFIG_MAKEFILE(dlls/dsdmoprp) WINE_CONFIG_MAKEFILE(dlls/dsound) WINE_CONFIG_MAKEFILE(dlls/dsound/tests) WINE_CONFIG_MAKEFILE(dlls/dsquery) diff --git a/dlls/dsdmoprp/Makefile.in b/dlls/dsdmoprp/Makefile.in new file mode 100644 index 00000000000..ca31aa0d359 --- /dev/null +++ b/dlls/dsdmoprp/Makefile.in @@ -0,0 +1,8 @@ +MODULE = dsdmoprp.dll + +EXTRADLLFLAGS = -mno-cygwin + +C_SRCS = \ + dsdmoprp_main.c + +RC_SRCS = version.rc diff --git a/dlls/dsdmoprp/dsdmoprp.spec b/dlls/dsdmoprp/dsdmoprp.spec new file mode 100644 index 00000000000..a043605127d --- /dev/null +++ b/dlls/dsdmoprp/dsdmoprp.spec @@ -0,0 +1,4 @@ +@ stub DllCanUnloadNow +@ stub DllGetClassObject +@ stub DllRegisterServer +@ stub DllUnregisterServer \ No newline at end of file diff --git a/dlls/dsdmoprp/dsdmoprp_main.c b/dlls/dsdmoprp/dsdmoprp_main.c new file mode 100644 index 00000000000..7a547e5d499 --- /dev/null +++ b/dlls/dsdmoprp/dsdmoprp_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(dsdmoprp); + +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/dsdmoprp/version.rc b/dlls/dsdmoprp/version.rc new file mode 100644 index 00000000000..9a2ca3e1c54 --- /dev/null +++ b/dlls/dsdmoprp/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 dsdmoprp" +#define WINE_FILENAME_STR "dsdmoprp.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