Uncomment out DisableThreadLibraryCalls in DllMain and add the

kernel32 imports that it requires.
This commit is contained in:
Alexandre Julliard 2005-08-29 15:11:37 +00:00
parent 37871ce3f1
commit bba5423d0f
10 changed files with 19 additions and 6 deletions

View File

@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = dinput8.dll
IMPORTLIB = libdinput8.$(IMPLIBEXT)
IMPORTS = dinput
IMPORTS = dinput kernel32
EXTRALIBS = -luuid
C_SRCS = \

View File

@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = dplay.dll
IMPORTLIB = libdplay.$(IMPLIBEXT)
IMPORTS = dplayx
IMPORTS = dplayx kernel32
C_SRCS = dplay_main.c

View File

@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = newdev.dll
IMPORTLIB = libnewdev.$(IMPLIBEXT)
IMPORTS = kernel32
C_SRCS = main.c

View File

@ -2087,6 +2087,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.@)
*

View File

@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = olepro32.dll
IMPORTLIB = libolepro32.$(IMPLIBEXT)
IMPORTS = oleaut32
IMPORTS = oleaut32 kernel32
C_SRCS = olepro32stubs.c

View File

@ -5,7 +5,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = rsabase.dll
IMPORTLIB = librsabase.$(IMPLIBEXT)
IMPORTS = rsaenh
IMPORTS = rsaenh kernel32
SUBDIRS = tests

View File

@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = shfolder.dll
IMPORTLIB = libshfolder.$(IMPLIBEXT)
IMPORTS = shell32
IMPORTS = shell32 kernel32
C_SRCS = shfolder_main.c

View File

@ -3,6 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = stdole2.tlb
IMPORTS = kernel32
RC_SRCS = rsrc.rc
RC_TLB = std_ole_v2.tlb

View File

@ -3,6 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = stdole32.tlb
IMPORTS = kernel32
RC_SRCS = rsrc.rc
RC_TLB = std_ole_v1.tlb

View File

@ -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;
}