Module: wine Branch: master Commit: 629ee5df464189f1b9869af92d0fa57ea8398d44 URL: https://source.winehq.org/git/wine.git/?a=commit;h=629ee5df464189f1b9869af92...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Feb 18 11:45:45 2021 +0100
msdrm: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/msdrm/Makefile.in | 5 +---- dlls/msdrm/main.c | 38 -------------------------------------- 2 files changed, 1 insertion(+), 42 deletions(-)
diff --git a/dlls/msdrm/Makefile.in b/dlls/msdrm/Makefile.in index 6f61c26b053..07d04d4f861 100644 --- a/dlls/msdrm/Makefile.in +++ b/dlls/msdrm/Makefile.in @@ -1,6 +1,3 @@ MODULE = msdrm.dll
-EXTRADLLFLAGS = -mno-cygwin - -C_SRCS = \ - main.c +EXTRADLLFLAGS = -Wb,--prefer-native diff --git a/dlls/msdrm/main.c b/dlls/msdrm/main.c deleted file mode 100644 index b278d77c83a..00000000000 --- a/dlls/msdrm/main.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * msdrm.dll - * - * Copyright 2016 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" - -BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) -{ - switch (reason) - { - case DLL_WINE_PREATTACH: - return FALSE; /* prefer native version */ - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls(instance); - break; - } - - return TRUE; -}