From 69a91bc75c9ca7f02008a9a292b55c6b4f4ff503 Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 13 Oct 2020 04:42:08 -0500 Subject: [PATCH] gcdef: add stub dll Signed-off-by: Austin English --- configure.ac | 1 + dlls/gcdef/Makefile.in | 8 ++++++++ dlls/gcdef/gcdef.spec | 2 ++ dlls/gcdef/gcdef_main.c | 42 +++++++++++++++++++++++++++++++++++++++++ dlls/gcdef/version.rc | 26 +++++++++++++++++++++++++ 5 files changed, 79 insertions(+) create mode 100644 dlls/gcdef/Makefile.in create mode 100644 dlls/gcdef/gcdef.spec create mode 100644 dlls/gcdef/gcdef_main.c create mode 100644 dlls/gcdef/version.rc diff --git a/configure.ac b/configure.ac index 5ca4d461a29..c1d9a23e889 100644 --- a/configure.ac +++ b/configure.ac @@ -3308,6 +3308,7 @@ WINE_CONFIG_MAKEFILE(dlls/fusion/tests) WINE_CONFIG_MAKEFILE(dlls/fwpuclnt) WINE_CONFIG_MAKEFILE(dlls/gameux) WINE_CONFIG_MAKEFILE(dlls/gameux/tests) +WINE_CONFIG_MAKEFILE(dlls/gcdef) WINE_CONFIG_MAKEFILE(dlls/gdi.exe16,enable_win16) WINE_CONFIG_MAKEFILE(dlls/gdi32) WINE_CONFIG_MAKEFILE(dlls/gdi32/tests) diff --git a/dlls/gcdef/Makefile.in b/dlls/gcdef/Makefile.in new file mode 100644 index 00000000000..754199cfda3 --- /dev/null +++ b/dlls/gcdef/Makefile.in @@ -0,0 +1,8 @@ +MODULE = gcdef.dll + +EXTRADLLFLAGS = -mno-cygwin + +C_SRCS = \ + gcdef_main.c + +RC_SRCS = version.rc diff --git a/dlls/gcdef/gcdef.spec b/dlls/gcdef/gcdef.spec new file mode 100644 index 00000000000..cacaa27a2ca --- /dev/null +++ b/dlls/gcdef/gcdef.spec @@ -0,0 +1,2 @@ +@ stub DllCanUnloadNow +@ stub DllGetClassObject diff --git a/dlls/gcdef/gcdef_main.c b/dlls/gcdef/gcdef_main.c new file mode 100644 index 00000000000..0c1758db31f --- /dev/null +++ b/dlls/gcdef/gcdef_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(gcdef); + +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/gcdef/version.rc b/dlls/gcdef/version.rc new file mode 100644 index 00000000000..c71136be6e1 --- /dev/null +++ b/dlls/gcdef/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 gcdef" +#define WINE_FILENAME_STR "gcdef.dll" +#define WINE_FILEVERSION 5,1,2600,881 +#define WINE_FILEVERSION_STR "5.1.2600.881" +#define WINE_PRODUCTVERSION 5,1,2600,881 +#define WINE_PRODUCTVERSION_STR "5.1.2600.881" + +#include "wine/wine_common_ver.rc" -- 2.29.2