Commit bba5423d authored by Alexandre Julliard's avatar Alexandre Julliard

Uncomment out DisableThreadLibraryCalls in DllMain and add the

kernel32 imports that it requires.
parent 37871ce3
......@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = dinput8.dll
IMPORTLIB = libdinput8.$(IMPLIBEXT)
IMPORTS = dinput
IMPORTS = dinput kernel32
EXTRALIBS = -luuid
C_SRCS = \
......
......@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = dplay.dll
IMPORTLIB = libdplay.$(IMPLIBEXT)
IMPORTS = dplayx
IMPORTS = dplayx kernel32
C_SRCS = dplay_main.c
......
......@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = newdev.dll
IMPORTLIB = libnewdev.$(IMPLIBEXT)
IMPORTS = kernel32
C_SRCS = main.c
......
......@@ -2088,6 +2088,16 @@ NTSTATUS WINAPI NtUnloadDriver( const UNICODE_STRING *DriverServiceName )
/******************************************************************
* DllMain (NTDLL.@)
*/
BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
{
if (reason == DLL_PROCESS_ATTACH) LdrDisableThreadCalloutsForDll( inst );
return TRUE;
}
/******************************************************************
* __wine_init_windows_dir (NTDLL.@)
*
* Windows and system dir initialization once kernel32 has been loaded.
......
......@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = olepro32.dll
IMPORTLIB = libolepro32.$(IMPLIBEXT)
IMPORTS = oleaut32
IMPORTS = oleaut32 kernel32
C_SRCS = olepro32stubs.c
......
......@@ -5,7 +5,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = rsabase.dll
IMPORTLIB = librsabase.$(IMPLIBEXT)
IMPORTS = rsaenh
IMPORTS = rsaenh kernel32
SUBDIRS = tests
......
......@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = shfolder.dll
IMPORTLIB = libshfolder.$(IMPLIBEXT)
IMPORTS = shell32
IMPORTS = shell32 kernel32
C_SRCS = shfolder_main.c
......
......@@ -3,6 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = stdole2.tlb
IMPORTS = kernel32
RC_SRCS = rsrc.rc
RC_TLB = std_ole_v2.tlb
......
......@@ -3,6 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = stdole32.tlb
IMPORTS = kernel32
RC_SRCS = rsrc.rc
RC_TLB = std_ole_v1.tlb
......
......@@ -24,6 +24,6 @@
BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
{
/* if (reason == DLL_PROCESS_ATTACH) DisableThreadLibraryCalls( inst ); */
if (reason == DLL_PROCESS_ATTACH) DisableThreadLibraryCalls( inst );
return TRUE;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment