From bc8f640e45e18ee0032f02c4d99f55d6fe51e034 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Tue, 5 Sep 2023 12:28:19 -0600 Subject: [PATCH] Revert "HACK: msmpeg2vdec: Refuse to load DLL for some games." This reverts commit 7267a0e38eee69af7042292bff435b98a8e1898b. CW-Bug-Id: #22084 --- dlls/msmpeg2vdec/Makefile.in | 3 --- dlls/msmpeg2vdec/main.c | 48 ------------------------------------ 2 files changed, 51 deletions(-) delete mode 100644 dlls/msmpeg2vdec/main.c diff --git a/dlls/msmpeg2vdec/Makefile.in b/dlls/msmpeg2vdec/Makefile.in index 609c6a34f9a..d2dbf5adda0 100644 --- a/dlls/msmpeg2vdec/Makefile.in +++ b/dlls/msmpeg2vdec/Makefile.in @@ -1,4 +1 @@ MODULE = msmpeg2vdec.dll - -C_SRCS = \ - main.c diff --git a/dlls/msmpeg2vdec/main.c b/dlls/msmpeg2vdec/main.c deleted file mode 100644 index 348d3d405b4..00000000000 --- a/dlls/msmpeg2vdec/main.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2023 RĂ©mi Bernon for CodeWeavers - * - * 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 -#include - -#include "windef.h" -#include "winbase.h" - -#include "wine/debug.h" - -WINE_DEFAULT_DEBUG_CHANNEL(mfplat); - -BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved ) -{ - TRACE( "instance %p, reason %#lx, reserved %p\n", instance, reason, reserved ); - - switch (reason) - { - case DLL_PROCESS_ATTACH: - { - const char *sgi; - if ((sgi = getenv( "SteamGameId" )) && !strcmp( sgi, "1498570" )) return FALSE; - DisableThreadLibraryCalls( instance ); - break; - } - case DLL_PROCESS_DETACH: - break; - } - - return TRUE; -}