Module: wine
Branch: master
Commit: 2b5151f751ce3566816ec254eddacc02a4c055fd
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2b5151f751ce3566816ec254…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Thu Feb 18 11:44:44 2021 +0100
mapistub: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/mapistub/Makefile.in | 5 +----
dlls/mapistub/main.c | 44 --------------------------------------------
2 files changed, 1 insertion(+), 48 deletions(-)
diff --git a/dlls/mapistub/Makefile.in b/dlls/mapistub/Makefile.in
index 63e06a4984a..20d740b1be6 100644
--- a/dlls/mapistub/Makefile.in
+++ b/dlls/mapistub/Makefile.in
@@ -1,6 +1,3 @@
MODULE = mapistub.dll
-EXTRADLLFLAGS = -mno-cygwin
-
-C_SRCS = \
- main.c
+EXTRADLLFLAGS = -Wb,--prefer-native
diff --git a/dlls/mapistub/main.c b/dlls/mapistub/main.c
deleted file mode 100644
index d1d81170f06..00000000000
--- a/dlls/mapistub/main.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright 2009 Louis Lenders
- *
- * 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"
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(mapistub);
-
-/*****************************************************
- * DllMain
- */
-BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
-{
- TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
-
- switch(reason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
-
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls( hinst );
- break;
- }
- return TRUE;
-}
Module: wine
Branch: master
Commit: 52c4a49a73fca980f24f8826be6f88e422195041
URL: https://source.winehq.org/git/wine.git/?a=commit;h=52c4a49a73fca980f24f8826…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Thu Feb 18 11:44:32 2021 +0100
ksuser: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/ksuser/Makefile.in | 5 +----
dlls/ksuser/main.c | 37 -------------------------------------
2 files changed, 1 insertion(+), 41 deletions(-)
diff --git a/dlls/ksuser/Makefile.in b/dlls/ksuser/Makefile.in
index c5e8251fb23..c83a9556073 100644
--- a/dlls/ksuser/Makefile.in
+++ b/dlls/ksuser/Makefile.in
@@ -1,8 +1,5 @@
MODULE = ksuser.dll
-EXTRADLLFLAGS = -mno-cygwin
-
-C_SRCS = \
- main.c
+EXTRADLLFLAGS = -Wb,--prefer-native
RC_SRCS = version.rc
diff --git a/dlls/ksuser/main.c b/dlls/ksuser/main.c
deleted file mode 100644
index df8e1a19325..00000000000
--- a/dlls/ksuser/main.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright 2014 Stefan Leichter
- *
- * 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"
-
-static HINSTANCE instance;
-
-BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
-{
- switch (reason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- instance = hinst;
- DisableThreadLibraryCalls( hinst );
- break;
- }
- return TRUE;
-}
Module: wine
Branch: master
Commit: 30e7c49a7f1ce3a979bd34e7ff0911cccaff6ef5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=30e7c49a7f1ce3a979bd34e7…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Thu Feb 18 11:44:18 2021 +0100
hid: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/hid/Makefile.in | 5 ++---
dlls/hid/hidd.c | 1 +
dlls/hid/main.c | 44 --------------------------------------------
3 files changed, 3 insertions(+), 47 deletions(-)
diff --git a/dlls/hid/Makefile.in b/dlls/hid/Makefile.in
index c9ae5f0e567..0146ebd8102 100644
--- a/dlls/hid/Makefile.in
+++ b/dlls/hid/Makefile.in
@@ -1,11 +1,10 @@
MODULE = hid.dll
IMPORTLIB = hid
-EXTRADLLFLAGS = -mno-cygwin
+EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
hidd.c \
- hidp.c \
- main.c
+ hidp.c
RC_SRCS = version.rc
diff --git a/dlls/hid/hidd.c b/dlls/hid/hidd.c
index 4bb4deb48b3..684ad5b5df8 100644
--- a/dlls/hid/hidd.c
+++ b/dlls/hid/hidd.c
@@ -32,6 +32,7 @@
#include "ddk/wdm.h"
#include "hidusage.h"
+#include "initguid.h"
#include "ddk/hidclass.h"
#include "ddk/hidsdi.h"
diff --git a/dlls/hid/main.c b/dlls/hid/main.c
deleted file mode 100644
index 6c53f118582..00000000000
--- a/dlls/hid/main.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Human Input Devices
- *
- * Copyright (C) 2006 Kevin Koltzau
- *
- * 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"
-
-#include "wine/debug.h"
-#include "initguid.h"
-#include "ddk/hidclass.h"
-
-/***********************************************************************/
-
-BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
-{
- switch(fdwReason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls(hInstDLL);
- break;
- }
- return TRUE;
-}
Module: wine
Branch: master
Commit: 0708c658f6a742aef9a373c8007c9c5d34d3a0ec
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0708c658f6a742aef9a373c8…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Thu Feb 18 11:43:59 2021 +0100
feclient: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/feclient/Makefile.in | 5 +----
dlls/feclient/main.c | 44 --------------------------------------------
2 files changed, 1 insertion(+), 48 deletions(-)
diff --git a/dlls/feclient/Makefile.in b/dlls/feclient/Makefile.in
index 0ca446d3620..ce3fb7e491e 100644
--- a/dlls/feclient/Makefile.in
+++ b/dlls/feclient/Makefile.in
@@ -1,6 +1,3 @@
MODULE = feclient.dll
-EXTRADLLFLAGS = -mno-cygwin
-
-C_SRCS = \
- main.c
+EXTRADLLFLAGS = -Wb,--prefer-native
diff --git a/dlls/feclient/main.c b/dlls/feclient/main.c
deleted file mode 100644
index ef49494da7c..00000000000
--- a/dlls/feclient/main.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * feclient API
- *
- * Copyright 2016 Michael Müller
- *
- * 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"
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(feclient);
-
-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;
-}
Module: wine
Branch: master
Commit: b3bb24ef31df51cb1597f2ed80591b1685ed11a0
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b3bb24ef31df51cb1597f2ed…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Thu Feb 18 11:43:45 2021 +0100
esent: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/esent/Makefile.in | 5 +----
dlls/esent/esent_main.c | 37 -------------------------------------
2 files changed, 1 insertion(+), 41 deletions(-)
diff --git a/dlls/esent/Makefile.in b/dlls/esent/Makefile.in
index b789ee2a65c..c06056b22af 100644
--- a/dlls/esent/Makefile.in
+++ b/dlls/esent/Makefile.in
@@ -1,6 +1,3 @@
MODULE = esent.dll
-EXTRADLLFLAGS = -mno-cygwin
-
-C_SRCS = \
- esent_main.c
+EXTRADLLFLAGS = -Wb,--prefer-native
diff --git a/dlls/esent/esent_main.c b/dlls/esent/esent_main.c
deleted file mode 100644
index f555676f422..00000000000
--- a/dlls/esent/esent_main.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright 2015 Jacek Caban 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 "windows.h"
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(esent);
-
-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;
-}
Module: wine
Branch: master
Commit: 146ff01f5465ba4d6c769ac452a00e8a6a4b112d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=146ff01f5465ba4d6c769ac4…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Thu Feb 18 11:43:26 2021 +0100
dcomp: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/dcomp/Makefile.in | 5 ++---
dlls/dcomp/main.c | 44 --------------------------------------------
2 files changed, 2 insertions(+), 47 deletions(-)
diff --git a/dlls/dcomp/Makefile.in b/dlls/dcomp/Makefile.in
index 436b88993ab..c02907f3373 100644
--- a/dlls/dcomp/Makefile.in
+++ b/dlls/dcomp/Makefile.in
@@ -1,9 +1,8 @@
MODULE = dcomp.dll
-EXTRADLLFLAGS = -mno-cygwin
+EXTRADLLFLAGS = -mno-cygwin -Wb,--prefer-native
C_SRCS = \
- device.c \
- main.c
+ device.c
RC_SRCS = version.rc
diff --git a/dlls/dcomp/main.c b/dlls/dcomp/main.c
deleted file mode 100644
index b0b911a9bf5..00000000000
--- a/dlls/dcomp/main.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * DirectComposition Library
- *
- * 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 <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(dcomp);
-
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
-{
- TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
-
- switch (fdwReason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls(hinstDLL);
- break;
- default:
- break;
- }
-
- return TRUE;
-}
Module: wine
Branch: master
Commit: 5a99feea38ddc08bf2d31518ab4d4b0777372a88
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5a99feea38ddc08bf2d31518…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Thu Feb 18 11:42:47 2021 +0100
d3dim: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/d3dim/Makefile.in | 4 +---
dlls/d3dim/d3dim_main.c | 37 -------------------------------------
dlls/d3dim700/Makefile.in | 5 +----
dlls/d3dim700/d3dim700_main.c | 42 ------------------------------------------
4 files changed, 2 insertions(+), 86 deletions(-)
diff --git a/dlls/d3dim/Makefile.in b/dlls/d3dim/Makefile.in
index 1acc05440cc..f62573b513d 100644
--- a/dlls/d3dim/Makefile.in
+++ b/dlls/d3dim/Makefile.in
@@ -1,7 +1,5 @@
MODULE = d3dim.dll
-EXTRADLLFLAGS = -mno-cygwin
-
-C_SRCS = d3dim_main.c
+EXTRADLLFLAGS = -Wb,--prefer-native
RC_SRCS = version.rc
diff --git a/dlls/d3dim/d3dim_main.c b/dlls/d3dim/d3dim_main.c
deleted file mode 100644
index 4651d5dc11f..00000000000
--- a/dlls/d3dim/d3dim_main.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright 2006 Alexandre Julliard
- *
- * 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"
-
-/***********************************************************************
- * DllMain (D3DIM.@)
- */
-BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
-{
- switch(reason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls( inst );
- break;
- }
- return TRUE;
-}
diff --git a/dlls/d3dim700/Makefile.in b/dlls/d3dim700/Makefile.in
index 12a28ae475a..f2106dd977e 100644
--- a/dlls/d3dim700/Makefile.in
+++ b/dlls/d3dim700/Makefile.in
@@ -1,8 +1,5 @@
MODULE = d3dim700.dll
-EXTRADLLFLAGS = -mno-cygwin
-
-C_SRCS = \
- d3dim700_main.c
+EXTRADLLFLAGS = -Wb,--prefer-native
RC_SRCS = version.rc
diff --git a/dlls/d3dim700/d3dim700_main.c b/dlls/d3dim700/d3dim700_main.c
deleted file mode 100644
index 18a211ccc74..00000000000
--- a/dlls/d3dim700/d3dim700_main.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- *
- * 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 <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(d3dim700);
-
-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;
-}
Module: wine
Branch: master
Commit: b5ab0b3e76a6f39feca497c8a7b358978d4ada0e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b5ab0b3e76a6f39feca497c8…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Thu Feb 18 11:41:48 2021 +0100
d3d8thk: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/d3d8thk/Makefile.in | 5 +----
dlls/d3d8thk/d3d8thk_main.c | 42 ------------------------------------------
2 files changed, 1 insertion(+), 46 deletions(-)
diff --git a/dlls/d3d8thk/Makefile.in b/dlls/d3d8thk/Makefile.in
index b84c8d171f1..3b406cb30d9 100644
--- a/dlls/d3d8thk/Makefile.in
+++ b/dlls/d3d8thk/Makefile.in
@@ -1,8 +1,5 @@
MODULE = d3d8thk.dll
-EXTRADLLFLAGS = -mno-cygwin
-
-C_SRCS = \
- d3d8thk_main.c
+EXTRADLLFLAGS = -Wb,--prefer-native
RC_SRCS = version.rc
diff --git a/dlls/d3d8thk/d3d8thk_main.c b/dlls/d3d8thk/d3d8thk_main.c
deleted file mode 100644
index 1d89cb48720..00000000000
--- a/dlls/d3d8thk/d3d8thk_main.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- *
- * 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 <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(d3d8thk);
-
-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;
-}
Module: wine
Branch: master
Commit: c8a804cf54038850908d8581d382acbe829aa2a9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c8a804cf54038850908d8581…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Thu Feb 18 11:41:20 2021 +0100
cryptdll: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/cryptdll/Makefile.in | 5 +----
dlls/cryptdll/cryptdll.c | 40 ----------------------------------------
2 files changed, 1 insertion(+), 44 deletions(-)
diff --git a/dlls/cryptdll/Makefile.in b/dlls/cryptdll/Makefile.in
index 7fd574e526f..e473c311083 100644
--- a/dlls/cryptdll/Makefile.in
+++ b/dlls/cryptdll/Makefile.in
@@ -2,7 +2,4 @@ MODULE = cryptdll.dll
IMPORTLIB = cryptdll
IMPORTS = advapi32
-EXTRADLLFLAGS = -mno-cygwin
-
-C_SRCS = \
- cryptdll.c
+EXTRADLLFLAGS = -Wb,--prefer-native
diff --git a/dlls/cryptdll/cryptdll.c b/dlls/cryptdll/cryptdll.c
deleted file mode 100644
index 963a2684e08..00000000000
--- a/dlls/cryptdll/cryptdll.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright 2005 Ulrich Czekalla (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 <stdarg.h>
-#include <stdlib.h>
-#include "windef.h"
-#include "winbase.h"
-#include "wine/debug.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(cryptdll);
-
-BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
-{
- TRACE("%p,%x,%p\n", hinstDLL, fdwReason, lpvReserved);
-
- switch (fdwReason) {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls(hinstDLL);
- break;
- }
-
- return TRUE;
-}