From f02cdd877f61868ec9faa778ab7e43dfaaf4da21 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 15 Apr 2013 16:30:20 +0200 Subject: [PATCH] Remove empty DLL_PROCESS_DETACH case statements. --- dlls/amstream/main.c | 2 -- dlls/apphelp/apphelp.c | 2 -- dlls/avifil32/factory.c | 2 -- dlls/avrt/main.c | 2 -- dlls/cards/cards.c | 2 -- dlls/cryptdlg/main.c | 4 ---- dlls/cryptdll/cryptdll.c | 6 ------ dlls/cryptui/main.c | 4 ---- dlls/d3dcompiler_33/d3dcompiler_33_main.c | 2 -- dlls/d3dcompiler_34/d3dcompiler_34_main.c | 2 -- dlls/d3dcompiler_35/d3dcompiler_35_main.c | 2 -- dlls/d3dcompiler_36/d3dcompiler_36_main.c | 2 -- dlls/d3dcompiler_37/d3dcompiler_37_main.c | 2 -- dlls/d3dcompiler_38/d3dcompiler_38_main.c | 2 -- dlls/d3dcompiler_39/d3dcompiler_39_main.c | 2 -- dlls/d3dcompiler_40/d3dcompiler_40_main.c | 2 -- dlls/d3dcompiler_41/d3dcompiler_41_main.c | 2 -- dlls/d3dcompiler_42/d3dcompiler_42_main.c | 2 -- dlls/d3dcompiler_43/d3dcompiler_43_main.c | 2 -- dlls/d3dx10_33/d3dx10_33_main.c | 2 -- dlls/d3dx10_34/d3dx10_34_main.c | 2 -- dlls/d3dx10_35/d3dx10_35_main.c | 2 -- dlls/d3dx10_36/d3dx10_36_main.c | 2 -- dlls/d3dx10_37/d3dx10_37_main.c | 2 -- dlls/d3dx10_38/d3dx10_38_main.c | 2 -- dlls/d3dx10_39/d3dx10_39_main.c | 2 -- dlls/d3dx10_40/d3dx10_40_main.c | 2 -- dlls/d3dx10_41/d3dx10_41_main.c | 2 -- dlls/d3dx10_42/d3dx10_42_main.c | 2 -- dlls/d3dx10_43/d3dx10_43_main.c | 2 -- dlls/d3dx9_24/d3dx9_24_main.c | 2 -- dlls/d3dx9_25/d3dx9_25_main.c | 2 -- dlls/d3dx9_26/d3dx9_26_main.c | 2 -- dlls/d3dx9_27/d3dx9_27_main.c | 2 -- dlls/d3dx9_28/d3dx9_28_main.c | 2 -- dlls/d3dx9_29/d3dx9_29_main.c | 2 -- dlls/d3dx9_30/d3dx9_30_main.c | 2 -- dlls/d3dx9_31/d3dx9_31_main.c | 2 -- dlls/d3dx9_32/d3dx9_32_main.c | 2 -- dlls/d3dx9_33/d3dx9_33_main.c | 2 -- dlls/d3dx9_34/d3dx9_34_main.c | 2 -- dlls/d3dx9_35/d3dx9_35_main.c | 2 -- dlls/d3dx9_36/d3dx9_36_main.c | 2 -- dlls/d3dx9_37/d3dx9_37_main.c | 2 -- dlls/d3dx9_38/d3dx9_38_main.c | 2 -- dlls/d3dx9_39/d3dx9_39_main.c | 2 -- dlls/d3dx9_40/d3dx9_40_main.c | 2 -- dlls/d3dx9_41/d3dx9_41_main.c | 2 -- dlls/d3dx9_42/d3dx9_42_main.c | 2 -- dlls/d3dx9_43/d3dx9_43_main.c | 2 -- dlls/d3dxof/main.c | 2 -- dlls/devenum/devenum_main.c | 4 ---- dlls/dhcpcsvc/dhcpcsvc.c | 2 -- dlls/dmband/dmband_main.c | 3 --- dlls/dmcompos/dmcompos_main.c | 5 ----- dlls/dmime/dmime_main.c | 4 ---- dlls/dmloader/dmloader_main.c | 3 --- dlls/dmscript/dmscript_main.c | 3 --- dlls/dmstyle/dmstyle_main.c | 3 --- dlls/dmsynth/dmsynth_main.c | 3 --- dlls/dmusic/dmusic_main.c | 3 --- dlls/dnsapi/main.c | 2 -- dlls/dpwsockx/dpwsockx_main.c | 4 ---- dlls/drmclien/main.c | 2 -- dlls/dssenh/main.c | 4 ---- dlls/dswave/dswave_main.c | 3 --- dlls/explorerframe/explorerframe_main.c | 2 -- dlls/faultrep/faultrep.c | 2 -- dlls/gameux/main.c | 2 -- dlls/gphoto2.ds/gphoto2_main.c | 4 ---- dlls/gpkcsp/main.c | 4 ---- dlls/hhctrl.ocx/hhctrl.c | 2 -- dlls/hid/main.c | 2 -- dlls/hlink/hlink_main.c | 2 -- dlls/hnetcfg/hnetcfg.c | 2 -- dlls/httpapi/httpapi_main.c | 2 -- dlls/iccvid/iccvid.c | 3 --- dlls/infosoft/infosoft_main.c | 2 -- dlls/initpki/main.c | 4 ---- dlls/inseng/inseng_main.c | 2 -- dlls/itircl/itircl_main.c | 4 ---- dlls/itss/itss.c | 2 -- dlls/loadperf/loadperf_main.c | 2 -- dlls/mapistub/main.c | 3 --- dlls/mgmtapi/mgmtapi.c | 2 -- dlls/mmcndmgr/mmcndmgr.c | 2 -- dlls/mscat32/main.c | 5 ----- dlls/msimtf/main.c | 2 -- dlls/msisip/main.c | 4 ---- dlls/mspatcha/mspatcha_main.c | 2 -- dlls/msrle32/msrle32.c | 3 --- dlls/mssign32/mssign32_main.c | 2 -- dlls/mssip32/main.c | 4 ---- dlls/mstask/mstask_main.c | 2 -- dlls/msvcm90/msvcm90_main.c | 2 -- dlls/msvcr71/msvcr71.c | 2 -- dlls/msvcrt40/msvcrt40.c | 2 -- dlls/msvidc32/msvideo1.c | 3 --- dlls/msvideo.dll16/msvideo16.c | 3 --- dlls/oledb32/main.c | 3 --- dlls/oledlg/oledlg_main.c | 4 ---- dlls/photometadatahandler/main.c | 2 -- dlls/propsys/propsys_main.c | 4 ---- dlls/pstorec/pstorec.c | 2 -- dlls/qedit/main.c | 2 -- dlls/qmgr/qmgr_main.c | 2 -- dlls/query/query_main.c | 2 -- dlls/rstrtmgr/main.c | 3 --- dlls/samlib/main.c | 3 --- dlls/sccbase/main.c | 4 ---- dlls/serialui/confdlg.c | 2 -- dlls/slbcsp/main.c | 4 ---- dlls/snmpapi/main.c | 2 -- dlls/svrapi/svrapi_main.c | 2 -- dlls/t2embed/main.c | 2 -- dlls/userenv/userenv_main.c | 2 -- dlls/uxtheme/main.c | 2 -- dlls/vcomp/main.c | 2 -- dlls/vcomp100/main.c | 2 -- dlls/vcomp90/main.c | 2 -- dlls/wbemprox/main.c | 2 -- dlls/webservices/main.c | 2 -- dlls/wer/main.c | 2 -- dlls/wevtapi/main.c | 2 -- dlls/wiaservc/wiaservc_main.c | 2 -- dlls/windowscodecs/main.c | 2 -- dlls/windowscodecsext/main.c | 2 -- dlls/wlanapi/main.c | 2 -- dlls/wldap32/main.c | 2 -- dlls/wmiutils/main.c | 2 -- dlls/wmvcore/wmvcore_main.c | 2 -- dlls/wsnmp32/wsnmp32.c | 2 -- dlls/wuapi/main.c | 2 -- dlls/wuaueng/main.c | 3 --- dlls/xapofx1_1/main.c | 3 --- dlls/xinput1_1/xinput1_1_main.c | 2 -- dlls/xinput1_2/xinput1_2_main.c | 2 -- dlls/xinput1_3/xinput1_3_main.c | 2 -- dlls/xinput9_1_0/xinput9_1_0_main.c | 2 -- dlls/xmllite/xmllite_main.c | 2 -- dlls/xolehlp/xolehlp.c | 2 -- dlls/xpsprint/main.c | 2 -- dlls/xpssvcs/main.c | 2 -- tools/winedump/output.c | 8 ++++---- 144 files changed, 4 insertions(+), 349 deletions(-) diff --git a/dlls/amstream/main.c b/dlls/amstream/main.c index 9c2d8b26fee..9479053d5a9 100644 --- a/dlls/amstream/main.c +++ b/dlls/amstream/main.c @@ -49,8 +49,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) instance = hInstDLL; DisableThreadLibraryCalls(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/apphelp/apphelp.c b/dlls/apphelp/apphelp.c index 7ef1a41a3d5..a82bc944504 100644 --- a/dlls/apphelp/apphelp.c +++ b/dlls/apphelp/apphelp.c @@ -45,8 +45,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/avifil32/factory.c b/dlls/avifil32/factory.c index 330022c86e8..5943774d95d 100644 --- a/dlls/avifil32/factory.c +++ b/dlls/avifil32/factory.c @@ -223,8 +223,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved) DisableThreadLibraryCalls(hInstDll); AVIFILE_hModule = hInstDll; break; - case DLL_PROCESS_DETACH: - break; }; return TRUE; diff --git a/dlls/avrt/main.c b/dlls/avrt/main.c index 111ffcd58cb..5c9ef4a29b8 100644 --- a/dlls/avrt/main.c +++ b/dlls/avrt/main.c @@ -40,8 +40,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/cards/cards.c b/dlls/cards/cards.c index f8f2b18ff91..b9506ead699 100644 --- a/dlls/cards/cards.c +++ b/dlls/cards/cards.c @@ -295,8 +295,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) hInst = inst; DisableThreadLibraryCalls( inst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/cryptdlg/main.c b/dlls/cryptdlg/main.c index 9124541be48..e3eaec1e19f 100644 --- a/dlls/cryptdlg/main.c +++ b/dlls/cryptdlg/main.c @@ -52,10 +52,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) DisableThreadLibraryCalls(hinstDLL); hInstance = hinstDLL; break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; } diff --git a/dlls/cryptdll/cryptdll.c b/dlls/cryptdll/cryptdll.c index c30046f4f38..1146a6d1ee1 100644 --- a/dlls/cryptdll/cryptdll.c +++ b/dlls/cryptdll/cryptdll.c @@ -33,14 +33,8 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_WINE_PREATTACH: return FALSE; /* prefer native version */ case DLL_PROCESS_ATTACH: - { DisableThreadLibraryCalls(hinstDLL); break; - } - case DLL_PROCESS_DETACH: - { - break; - } } return TRUE; diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c index c3b0a0ea958..0aea379e6cb 100644 --- a/dlls/cryptui/main.c +++ b/dlls/cryptui/main.c @@ -58,10 +58,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) hInstance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; } diff --git a/dlls/d3dcompiler_33/d3dcompiler_33_main.c b/dlls/d3dcompiler_33/d3dcompiler_33_main.c index c4745ee70d9..4453ead0031 100644 --- a/dlls/d3dcompiler_33/d3dcompiler_33_main.c +++ b/dlls/d3dcompiler_33/d3dcompiler_33_main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dcompiler_34/d3dcompiler_34_main.c b/dlls/d3dcompiler_34/d3dcompiler_34_main.c index c4745ee70d9..4453ead0031 100644 --- a/dlls/d3dcompiler_34/d3dcompiler_34_main.c +++ b/dlls/d3dcompiler_34/d3dcompiler_34_main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dcompiler_35/d3dcompiler_35_main.c b/dlls/d3dcompiler_35/d3dcompiler_35_main.c index c4745ee70d9..4453ead0031 100644 --- a/dlls/d3dcompiler_35/d3dcompiler_35_main.c +++ b/dlls/d3dcompiler_35/d3dcompiler_35_main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dcompiler_36/d3dcompiler_36_main.c b/dlls/d3dcompiler_36/d3dcompiler_36_main.c index c4745ee70d9..4453ead0031 100644 --- a/dlls/d3dcompiler_36/d3dcompiler_36_main.c +++ b/dlls/d3dcompiler_36/d3dcompiler_36_main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dcompiler_37/d3dcompiler_37_main.c b/dlls/d3dcompiler_37/d3dcompiler_37_main.c index c4745ee70d9..4453ead0031 100644 --- a/dlls/d3dcompiler_37/d3dcompiler_37_main.c +++ b/dlls/d3dcompiler_37/d3dcompiler_37_main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dcompiler_38/d3dcompiler_38_main.c b/dlls/d3dcompiler_38/d3dcompiler_38_main.c index c4745ee70d9..4453ead0031 100644 --- a/dlls/d3dcompiler_38/d3dcompiler_38_main.c +++ b/dlls/d3dcompiler_38/d3dcompiler_38_main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dcompiler_39/d3dcompiler_39_main.c b/dlls/d3dcompiler_39/d3dcompiler_39_main.c index c4745ee70d9..4453ead0031 100644 --- a/dlls/d3dcompiler_39/d3dcompiler_39_main.c +++ b/dlls/d3dcompiler_39/d3dcompiler_39_main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dcompiler_40/d3dcompiler_40_main.c b/dlls/d3dcompiler_40/d3dcompiler_40_main.c index c4745ee70d9..4453ead0031 100644 --- a/dlls/d3dcompiler_40/d3dcompiler_40_main.c +++ b/dlls/d3dcompiler_40/d3dcompiler_40_main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dcompiler_41/d3dcompiler_41_main.c b/dlls/d3dcompiler_41/d3dcompiler_41_main.c index c4745ee70d9..4453ead0031 100644 --- a/dlls/d3dcompiler_41/d3dcompiler_41_main.c +++ b/dlls/d3dcompiler_41/d3dcompiler_41_main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dcompiler_42/d3dcompiler_42_main.c b/dlls/d3dcompiler_42/d3dcompiler_42_main.c index c4745ee70d9..4453ead0031 100644 --- a/dlls/d3dcompiler_42/d3dcompiler_42_main.c +++ b/dlls/d3dcompiler_42/d3dcompiler_42_main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dcompiler_43/d3dcompiler_43_main.c b/dlls/d3dcompiler_43/d3dcompiler_43_main.c index db2f587fd9e..0c664710935 100644 --- a/dlls/d3dcompiler_43/d3dcompiler_43_main.c +++ b/dlls/d3dcompiler_43/d3dcompiler_43_main.c @@ -37,8 +37,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx10_33/d3dx10_33_main.c b/dlls/d3dx10_33/d3dx10_33_main.c index c2855cf14c2..3aaf41a9091 100644 --- a/dlls/d3dx10_33/d3dx10_33_main.c +++ b/dlls/d3dx10_33/d3dx10_33_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx10_34/d3dx10_34_main.c b/dlls/d3dx10_34/d3dx10_34_main.c index 17224babc50..0c50efaf4cd 100644 --- a/dlls/d3dx10_34/d3dx10_34_main.c +++ b/dlls/d3dx10_34/d3dx10_34_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx10_35/d3dx10_35_main.c b/dlls/d3dx10_35/d3dx10_35_main.c index f05ee055dc6..d92c56a75e9 100644 --- a/dlls/d3dx10_35/d3dx10_35_main.c +++ b/dlls/d3dx10_35/d3dx10_35_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx10_36/d3dx10_36_main.c b/dlls/d3dx10_36/d3dx10_36_main.c index 543eb53dc92..06de8c3beb9 100644 --- a/dlls/d3dx10_36/d3dx10_36_main.c +++ b/dlls/d3dx10_36/d3dx10_36_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx10_37/d3dx10_37_main.c b/dlls/d3dx10_37/d3dx10_37_main.c index 1ee048aff5b..6b036818c73 100644 --- a/dlls/d3dx10_37/d3dx10_37_main.c +++ b/dlls/d3dx10_37/d3dx10_37_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx10_38/d3dx10_38_main.c b/dlls/d3dx10_38/d3dx10_38_main.c index a063dc07692..5a5ba230e3e 100644 --- a/dlls/d3dx10_38/d3dx10_38_main.c +++ b/dlls/d3dx10_38/d3dx10_38_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx10_39/d3dx10_39_main.c b/dlls/d3dx10_39/d3dx10_39_main.c index dbbc316e20e..33daa9a7af7 100644 --- a/dlls/d3dx10_39/d3dx10_39_main.c +++ b/dlls/d3dx10_39/d3dx10_39_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx10_40/d3dx10_40_main.c b/dlls/d3dx10_40/d3dx10_40_main.c index 6481c708b33..072587148bf 100644 --- a/dlls/d3dx10_40/d3dx10_40_main.c +++ b/dlls/d3dx10_40/d3dx10_40_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx10_41/d3dx10_41_main.c b/dlls/d3dx10_41/d3dx10_41_main.c index b57fe09168d..e8680d836e3 100644 --- a/dlls/d3dx10_41/d3dx10_41_main.c +++ b/dlls/d3dx10_41/d3dx10_41_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx10_42/d3dx10_42_main.c b/dlls/d3dx10_42/d3dx10_42_main.c index f5fe6da5c1c..6c1167855c2 100644 --- a/dlls/d3dx10_42/d3dx10_42_main.c +++ b/dlls/d3dx10_42/d3dx10_42_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx10_43/d3dx10_43_main.c b/dlls/d3dx10_43/d3dx10_43_main.c index 1d4e5965a35..b3f9341f319 100644 --- a/dlls/d3dx10_43/d3dx10_43_main.c +++ b/dlls/d3dx10_43/d3dx10_43_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/d3dx9_24/d3dx9_24_main.c b/dlls/d3dx9_24/d3dx9_24_main.c index cc6ffbf04e9..3f6d2ff339b 100644 --- a/dlls/d3dx9_24/d3dx9_24_main.c +++ b/dlls/d3dx9_24/d3dx9_24_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_25/d3dx9_25_main.c b/dlls/d3dx9_25/d3dx9_25_main.c index 57a066964a8..11ae5d4ff92 100644 --- a/dlls/d3dx9_25/d3dx9_25_main.c +++ b/dlls/d3dx9_25/d3dx9_25_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_26/d3dx9_26_main.c b/dlls/d3dx9_26/d3dx9_26_main.c index 1ce818b5b50..23a1cf39b0e 100644 --- a/dlls/d3dx9_26/d3dx9_26_main.c +++ b/dlls/d3dx9_26/d3dx9_26_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_27/d3dx9_27_main.c b/dlls/d3dx9_27/d3dx9_27_main.c index 15919832ccd..9f6d3b1fc21 100644 --- a/dlls/d3dx9_27/d3dx9_27_main.c +++ b/dlls/d3dx9_27/d3dx9_27_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_28/d3dx9_28_main.c b/dlls/d3dx9_28/d3dx9_28_main.c index 2157eec4324..e5d9491f78c 100644 --- a/dlls/d3dx9_28/d3dx9_28_main.c +++ b/dlls/d3dx9_28/d3dx9_28_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_29/d3dx9_29_main.c b/dlls/d3dx9_29/d3dx9_29_main.c index 5782417710e..40810d962b8 100644 --- a/dlls/d3dx9_29/d3dx9_29_main.c +++ b/dlls/d3dx9_29/d3dx9_29_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_30/d3dx9_30_main.c b/dlls/d3dx9_30/d3dx9_30_main.c index ae131156924..25fd035b8b5 100644 --- a/dlls/d3dx9_30/d3dx9_30_main.c +++ b/dlls/d3dx9_30/d3dx9_30_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_31/d3dx9_31_main.c b/dlls/d3dx9_31/d3dx9_31_main.c index 3f38b840b53..f27627e4f91 100644 --- a/dlls/d3dx9_31/d3dx9_31_main.c +++ b/dlls/d3dx9_31/d3dx9_31_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_32/d3dx9_32_main.c b/dlls/d3dx9_32/d3dx9_32_main.c index 90888225952..c876cc958c7 100644 --- a/dlls/d3dx9_32/d3dx9_32_main.c +++ b/dlls/d3dx9_32/d3dx9_32_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_33/d3dx9_33_main.c b/dlls/d3dx9_33/d3dx9_33_main.c index afe8947b1b6..1b65a840eae 100644 --- a/dlls/d3dx9_33/d3dx9_33_main.c +++ b/dlls/d3dx9_33/d3dx9_33_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_34/d3dx9_34_main.c b/dlls/d3dx9_34/d3dx9_34_main.c index 18acc11e909..751685d2800 100644 --- a/dlls/d3dx9_34/d3dx9_34_main.c +++ b/dlls/d3dx9_34/d3dx9_34_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_35/d3dx9_35_main.c b/dlls/d3dx9_35/d3dx9_35_main.c index f87861883fa..e644bf05623 100644 --- a/dlls/d3dx9_35/d3dx9_35_main.c +++ b/dlls/d3dx9_35/d3dx9_35_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_36/d3dx9_36_main.c b/dlls/d3dx9_36/d3dx9_36_main.c index 35d132cca0a..31f720af8cc 100644 --- a/dlls/d3dx9_36/d3dx9_36_main.c +++ b/dlls/d3dx9_36/d3dx9_36_main.c @@ -45,8 +45,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_37/d3dx9_37_main.c b/dlls/d3dx9_37/d3dx9_37_main.c index 21700098a23..ed7a7344b16 100644 --- a/dlls/d3dx9_37/d3dx9_37_main.c +++ b/dlls/d3dx9_37/d3dx9_37_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_38/d3dx9_38_main.c b/dlls/d3dx9_38/d3dx9_38_main.c index 5165ad66b33..16417465e59 100644 --- a/dlls/d3dx9_38/d3dx9_38_main.c +++ b/dlls/d3dx9_38/d3dx9_38_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_39/d3dx9_39_main.c b/dlls/d3dx9_39/d3dx9_39_main.c index 2386be79485..ada745d8641 100644 --- a/dlls/d3dx9_39/d3dx9_39_main.c +++ b/dlls/d3dx9_39/d3dx9_39_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_40/d3dx9_40_main.c b/dlls/d3dx9_40/d3dx9_40_main.c index f603db927a2..0aebd953430 100644 --- a/dlls/d3dx9_40/d3dx9_40_main.c +++ b/dlls/d3dx9_40/d3dx9_40_main.c @@ -44,8 +44,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_41/d3dx9_41_main.c b/dlls/d3dx9_41/d3dx9_41_main.c index 51a92c5ade2..dd073142d3d 100644 --- a/dlls/d3dx9_41/d3dx9_41_main.c +++ b/dlls/d3dx9_41/d3dx9_41_main.c @@ -44,8 +44,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_42/d3dx9_42_main.c b/dlls/d3dx9_42/d3dx9_42_main.c index ca5f7506b68..e3419747351 100644 --- a/dlls/d3dx9_42/d3dx9_42_main.c +++ b/dlls/d3dx9_42/d3dx9_42_main.c @@ -45,8 +45,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dx9_43/d3dx9_43_main.c b/dlls/d3dx9_43/d3dx9_43_main.c index 4e97fb745b2..a7ecd0408f1 100644 --- a/dlls/d3dx9_43/d3dx9_43_main.c +++ b/dlls/d3dx9_43/d3dx9_43_main.c @@ -44,8 +44,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/d3dxof/main.c b/dlls/d3dxof/main.c index 9ca7103b6ee..48ee22bb60f 100644 --- a/dlls/d3dxof/main.c +++ b/dlls/d3dxof/main.c @@ -51,8 +51,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) instance = hInstDLL; DisableThreadLibraryCalls(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/devenum/devenum_main.c b/dlls/devenum/devenum_main.c index 576e3ea1618..716a05d046a 100644 --- a/dlls/devenum/devenum_main.c +++ b/dlls/devenum/devenum_main.c @@ -52,10 +52,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) DEVENUM_hInstance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); break; - - case DLL_PROCESS_DETACH: - DEVENUM_hInstance = 0; - break; } return TRUE; } diff --git a/dlls/dhcpcsvc/dhcpcsvc.c b/dlls/dhcpcsvc/dhcpcsvc.c index 4927aac762a..3600680f23d 100644 --- a/dlls/dhcpcsvc/dhcpcsvc.c +++ b/dlls/dhcpcsvc/dhcpcsvc.c @@ -34,8 +34,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/dmband/dmband_main.c b/dlls/dmband/dmband_main.c index 43d102297db..414f5e4f7e4 100644 --- a/dlls/dmband/dmband_main.c +++ b/dlls/dmband/dmband_main.c @@ -114,9 +114,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { instance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); - /* FIXME: Initialisation */ - } else if (fdwReason == DLL_PROCESS_DETACH) { - /* FIXME: Cleanup */ } return TRUE; diff --git a/dlls/dmcompos/dmcompos_main.c b/dlls/dmcompos/dmcompos_main.c index e82ca945f5b..480914c98be 100644 --- a/dlls/dmcompos/dmcompos_main.c +++ b/dlls/dmcompos/dmcompos_main.c @@ -129,12 +129,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { instance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); - /* FIXME: Initialisation */ } - else if (fdwReason == DLL_PROCESS_DETACH) { - /* FIXME: Cleanup */ - } - return TRUE; } diff --git a/dlls/dmime/dmime_main.c b/dlls/dmime/dmime_main.c index 58fe3bf2f9d..92213b395c2 100644 --- a/dlls/dmime/dmime_main.c +++ b/dlls/dmime/dmime_main.c @@ -136,10 +136,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { instance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); - /* FIXME: Initialisation */ - } - else if (fdwReason == DLL_PROCESS_DETACH) { - /* FIXME: Cleanup */ } return TRUE; diff --git a/dlls/dmloader/dmloader_main.c b/dlls/dmloader/dmloader_main.c index 30bc31b645d..eaed6339a91 100644 --- a/dlls/dmloader/dmloader_main.c +++ b/dlls/dmloader/dmloader_main.c @@ -113,9 +113,6 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { instance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); - /* FIXME: Initialisation */ - } else if (fdwReason == DLL_PROCESS_DETACH) { - /* FIXME: Cleanup */ } return TRUE; } diff --git a/dlls/dmscript/dmscript_main.c b/dlls/dmscript/dmscript_main.c index 11f3f97a59f..96e4b42ccaa 100644 --- a/dlls/dmscript/dmscript_main.c +++ b/dlls/dmscript/dmscript_main.c @@ -137,9 +137,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { instance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); - /* FIXME: Initialisation */ - } else if (fdwReason == DLL_PROCESS_DETACH) { - /* FIXME: Cleanup */ } return TRUE; diff --git a/dlls/dmstyle/dmstyle_main.c b/dlls/dmstyle/dmstyle_main.c index 2daa599de59..677fc1c70ef 100644 --- a/dlls/dmstyle/dmstyle_main.c +++ b/dlls/dmstyle/dmstyle_main.c @@ -129,9 +129,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { instance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); - /* FIXME: Initialisation */ - } else if (fdwReason == DLL_PROCESS_DETACH) { - /* FIXME: Cleanup */ } return TRUE; diff --git a/dlls/dmsynth/dmsynth_main.c b/dlls/dmsynth/dmsynth_main.c index 4afa7b4bddb..6c00395a072 100644 --- a/dlls/dmsynth/dmsynth_main.c +++ b/dlls/dmsynth/dmsynth_main.c @@ -120,9 +120,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { instance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); - /* FIXME: Initialisation */ - } else if (fdwReason == DLL_PROCESS_DETACH) { - /* FIXME: Cleanup */ } return TRUE; diff --git a/dlls/dmusic/dmusic_main.c b/dlls/dmusic/dmusic_main.c index 66080a7b874..d31753873d2 100644 --- a/dlls/dmusic/dmusic_main.c +++ b/dlls/dmusic/dmusic_main.c @@ -120,9 +120,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { instance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); - /* FIXME: Initialisation */ - } else if (fdwReason == DLL_PROCESS_DETACH) { - /* FIXME: Cleanup */ } return TRUE; diff --git a/dlls/dnsapi/main.c b/dlls/dnsapi/main.c index f1572306455..d4f716a0108 100644 --- a/dlls/dnsapi/main.c +++ b/dlls/dnsapi/main.c @@ -41,8 +41,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/dpwsockx/dpwsockx_main.c b/dlls/dpwsockx/dpwsockx_main.c index ff6f5b54fa0..548f37ecf72 100644 --- a/dlls/dpwsockx/dpwsockx_main.c +++ b/dlls/dpwsockx/dpwsockx_main.c @@ -44,10 +44,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) /* TODO: Initialization */ DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; diff --git a/dlls/drmclien/main.c b/dlls/drmclien/main.c index ed6b91e2834..99654d54ed4 100644 --- a/dlls/drmclien/main.c +++ b/dlls/drmclien/main.c @@ -36,8 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/dssenh/main.c b/dlls/dssenh/main.c index 4c55ff8bc68..c638724c0eb 100644 --- a/dlls/dssenh/main.c +++ b/dlls/dssenh/main.c @@ -37,10 +37,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; } diff --git a/dlls/dswave/dswave_main.c b/dlls/dswave/dswave_main.c index 06b7a4374a9..a5f83909c19 100644 --- a/dlls/dswave/dswave_main.c +++ b/dlls/dswave/dswave_main.c @@ -110,9 +110,6 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { if (fdwReason == DLL_PROCESS_ATTACH) { instance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); - /* FIXME: Initialisation */ - } else if (fdwReason == DLL_PROCESS_DETACH) { - /* FIXME: Cleanup */ } return TRUE; diff --git a/dlls/explorerframe/explorerframe_main.c b/dlls/explorerframe/explorerframe_main.c index bdb77a1da33..75862097bae 100644 --- a/dlls/explorerframe/explorerframe_main.c +++ b/dlls/explorerframe/explorerframe_main.c @@ -54,8 +54,6 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad) DisableThreadLibraryCalls(hinst); explorerframe_hinstance = hinst; break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/faultrep/faultrep.c b/dlls/faultrep/faultrep.c index d4bd7131bbb..a05dabb5306 100644 --- a/dlls/faultrep/faultrep.c +++ b/dlls/faultrep/faultrep.c @@ -123,8 +123,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/gameux/main.c b/dlls/gameux/main.c index 2497a3add9c..28bc11ed547 100644 --- a/dlls/gameux/main.c +++ b/dlls/gameux/main.c @@ -53,8 +53,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) instance = hInstDLL; DisableThreadLibraryCalls(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/gphoto2.ds/gphoto2_main.c b/dlls/gphoto2.ds/gphoto2_main.c index 8c146326917..005fece0f70 100644 --- a/dlls/gphoto2.ds/gphoto2_main.c +++ b/dlls/gphoto2.ds/gphoto2_main.c @@ -573,10 +573,6 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) activeDS.context = gp_context_new (); #endif break; - - case DLL_PROCESS_DETACH: - GPHOTO2_instance = NULL; - break; } return TRUE; diff --git a/dlls/gpkcsp/main.c b/dlls/gpkcsp/main.c index 79f1e2dce63..5a2185c8bff 100644 --- a/dlls/gpkcsp/main.c +++ b/dlls/gpkcsp/main.c @@ -37,10 +37,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; } diff --git a/dlls/hhctrl.ocx/hhctrl.c b/dlls/hhctrl.ocx/hhctrl.c index 3fd7df5bfe9..339271546a7 100644 --- a/dlls/hhctrl.ocx/hhctrl.c +++ b/dlls/hhctrl.ocx/hhctrl.c @@ -53,8 +53,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, LPVOID lpvReserved) hhctrl_hinstance = hInstance; DisableThreadLibraryCalls(hInstance); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/hid/main.c b/dlls/hid/main.c index ed85f000ad7..249307559bf 100644 --- a/dlls/hid/main.c +++ b/dlls/hid/main.c @@ -44,8 +44,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/hlink/hlink_main.c b/dlls/hlink/hlink_main.c index 5adbe9d4196..6df3781a619 100644 --- a/dlls/hlink/hlink_main.c +++ b/dlls/hlink/hlink_main.c @@ -53,8 +53,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) instance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/hnetcfg/hnetcfg.c b/dlls/hnetcfg/hnetcfg.c index fe65a78a3f7..f508deaea00 100644 --- a/dlls/hnetcfg/hnetcfg.c +++ b/dlls/hnetcfg/hnetcfg.c @@ -124,8 +124,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved) instance = hInstDLL; DisableThreadLibraryCalls(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/httpapi/httpapi_main.c b/dlls/httpapi/httpapi_main.c index e71048f182c..5430f7e1c40 100644 --- a/dlls/httpapi/httpapi_main.c +++ b/dlls/httpapi/httpapi_main.c @@ -38,8 +38,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/iccvid/iccvid.c b/dlls/iccvid/iccvid.c index 1a1b33e2ae9..b1cdd69db77 100644 --- a/dlls/iccvid/iccvid.c +++ b/dlls/iccvid/iccvid.c @@ -1035,9 +1035,6 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved) DisableThreadLibraryCalls(hModule); ICCVID_hModule = hModule; break; - - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/infosoft/infosoft_main.c b/dlls/infosoft/infosoft_main.c index edd3759d455..032316b0f28 100644 --- a/dlls/infosoft/infosoft_main.c +++ b/dlls/infosoft/infosoft_main.c @@ -50,8 +50,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) instance = hInstDLL; DisableThreadLibraryCalls(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/initpki/main.c b/dlls/initpki/main.c index caa00365649..c5def6c2219 100644 --- a/dlls/initpki/main.c +++ b/dlls/initpki/main.c @@ -37,10 +37,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; } diff --git a/dlls/inseng/inseng_main.c b/dlls/inseng/inseng_main.c index 42681c28103..061aabb0a5f 100644 --- a/dlls/inseng/inseng_main.c +++ b/dlls/inseng/inseng_main.c @@ -47,8 +47,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) instance = hInstDLL; DisableThreadLibraryCalls(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/itircl/itircl_main.c b/dlls/itircl/itircl_main.c index e2f1ed35035..4fb05c0a194 100644 --- a/dlls/itircl/itircl_main.c +++ b/dlls/itircl/itircl_main.c @@ -39,10 +39,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; diff --git a/dlls/itss/itss.c b/dlls/itss/itss.c index 94687d8753f..fe28ba93533 100644 --- a/dlls/itss/itss.c +++ b/dlls/itss/itss.c @@ -58,8 +58,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) DisableThreadLibraryCalls(hInstDLL); hInst = hInstDLL; break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/loadperf/loadperf_main.c b/dlls/loadperf/loadperf_main.c index 35ce891cebc..8f0da112ecf 100644 --- a/dlls/loadperf/loadperf_main.c +++ b/dlls/loadperf/loadperf_main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/mapistub/main.c b/dlls/mapistub/main.c index 9e209178422..51ff43b9f7c 100644 --- a/dlls/mapistub/main.c +++ b/dlls/mapistub/main.c @@ -40,9 +40,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/mgmtapi/mgmtapi.c b/dlls/mgmtapi/mgmtapi.c index 0cde5d53e67..fd6cdf932b5 100644 --- a/dlls/mgmtapi/mgmtapi.c +++ b/dlls/mgmtapi/mgmtapi.c @@ -34,8 +34,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/mmcndmgr/mmcndmgr.c b/dlls/mmcndmgr/mmcndmgr.c index 44492334303..255b27d1289 100644 --- a/dlls/mmcndmgr/mmcndmgr.c +++ b/dlls/mmcndmgr/mmcndmgr.c @@ -184,8 +184,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: MMC_hInstance = hinstDLL; break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/mscat32/main.c b/dlls/mscat32/main.c index 7e61aa93ce8..d2b9d8bd67b 100644 --- a/dlls/mscat32/main.c +++ b/dlls/mscat32/main.c @@ -36,11 +36,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) if (fdwReason == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls( hinstDLL ); - /* FIXME: Initialisation */ - } - else if (fdwReason == DLL_PROCESS_DETACH) - { - /* FIXME: Cleanup */ } return TRUE; diff --git a/dlls/msimtf/main.c b/dlls/msimtf/main.c index cfd7443a709..daae81757da 100644 --- a/dlls/msimtf/main.c +++ b/dlls/msimtf/main.c @@ -52,8 +52,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) msimtf_instance = hInstDLL; DisableThreadLibraryCalls(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/msisip/main.c b/dlls/msisip/main.c index 98a57437aad..0b4d2c3cc9a 100644 --- a/dlls/msisip/main.c +++ b/dlls/msisip/main.c @@ -40,10 +40,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; diff --git a/dlls/mspatcha/mspatcha_main.c b/dlls/mspatcha/mspatcha_main.c index fcce619c867..f78b8ab352d 100644 --- a/dlls/mspatcha/mspatcha_main.c +++ b/dlls/mspatcha/mspatcha_main.c @@ -44,8 +44,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/msrle32/msrle32.c b/dlls/msrle32/msrle32.c index acd38664169..668701a7486 100644 --- a/dlls/msrle32/msrle32.c +++ b/dlls/msrle32/msrle32.c @@ -1917,9 +1917,6 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved) DisableThreadLibraryCalls(hModule); MSRLE32_hModule = hModule; break; - - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/mssign32/mssign32_main.c b/dlls/mssign32/mssign32_main.c index ef1065fe50e..e35488bad3e 100644 --- a/dlls/mssign32/mssign32_main.c +++ b/dlls/mssign32/mssign32_main.c @@ -39,8 +39,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/mssip32/main.c b/dlls/mssip32/main.c index 7d137018114..a72c34662fd 100644 --- a/dlls/mssip32/main.c +++ b/dlls/mssip32/main.c @@ -37,10 +37,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; } diff --git a/dlls/mstask/mstask_main.c b/dlls/mstask/mstask_main.c index 2a13bae6e75..aa6693d1e8e 100644 --- a/dlls/mstask/mstask_main.c +++ b/dlls/mstask/mstask_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) DisableThreadLibraryCalls(hinstDLL); hInst = hinstDLL; break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/msvcm90/msvcm90_main.c b/dlls/msvcm90/msvcm90_main.c index fe5526f6fee..6019afd794b 100644 --- a/dlls/msvcm90/msvcm90_main.c +++ b/dlls/msvcm90/msvcm90_main.c @@ -37,8 +37,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/msvcr71/msvcr71.c b/dlls/msvcr71/msvcr71.c index 6134982192b..dd1eac90306 100644 --- a/dlls/msvcr71/msvcr71.c +++ b/dlls/msvcr71/msvcr71.c @@ -32,8 +32,6 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( inst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/msvcrt40/msvcrt40.c b/dlls/msvcrt40/msvcrt40.c index f178ea0bafa..122166d1dbf 100644 --- a/dlls/msvcrt40/msvcrt40.c +++ b/dlls/msvcrt40/msvcrt40.c @@ -32,8 +32,6 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( inst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/msvidc32/msvideo1.c b/dlls/msvidc32/msvideo1.c index 7add314d8d3..831e6f75557 100644 --- a/dlls/msvidc32/msvideo1.c +++ b/dlls/msvidc32/msvideo1.c @@ -580,9 +580,6 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved) DisableThreadLibraryCalls(hModule); MSVIDC32_hModule = hModule; break; - - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/msvideo.dll16/msvideo16.c b/dlls/msvideo.dll16/msvideo16.c index b729ccc870e..12833c95d26 100644 --- a/dlls/msvideo.dll16/msvideo16.c +++ b/dlls/msvideo.dll16/msvideo16.c @@ -969,9 +969,6 @@ BOOL WINAPI VIDEO_LibMain(DWORD fdwReason, HINSTANCE hinstDLL, WORD ds, case DLL_PROCESS_DETACH: DeleteCriticalSection(&msvideo_cs); break; - case DLL_THREAD_ATTACH: - case DLL_THREAD_DETACH: - break; } return TRUE; } diff --git a/dlls/oledb32/main.c b/dlls/oledb32/main.c index e8a1d468957..88556b960ec 100644 --- a/dlls/oledb32/main.c +++ b/dlls/oledb32/main.c @@ -48,9 +48,6 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID lpv) instance = hinst; DisableThreadLibraryCalls(hinst); break; - - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/oledlg/oledlg_main.c b/dlls/oledlg/oledlg_main.c index 6033231ea6f..f3f91fb6b77 100644 --- a/dlls/oledlg/oledlg_main.c +++ b/dlls/oledlg/oledlg_main.c @@ -90,10 +90,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) register_clipboard_formats(); register_messages(); break; - - case DLL_PROCESS_DETACH: - OLEDLG_hInstance = 0; - break; } return TRUE; } diff --git a/dlls/photometadatahandler/main.c b/dlls/photometadatahandler/main.c index 4de07a0f10e..9ad44ffd6e1 100644 --- a/dlls/photometadatahandler/main.c +++ b/dlls/photometadatahandler/main.c @@ -35,8 +35,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/propsys/propsys_main.c b/dlls/propsys/propsys_main.c index cc7be040aab..ce9131b209d 100644 --- a/dlls/propsys/propsys_main.c +++ b/dlls/propsys/propsys_main.c @@ -50,10 +50,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) propsys_hInstance = hinstDLL; DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; diff --git a/dlls/pstorec/pstorec.c b/dlls/pstorec/pstorec.c index 4d7b6911b59..b100a08fb2b 100644 --- a/dlls/pstorec/pstorec.c +++ b/dlls/pstorec/pstorec.c @@ -53,8 +53,6 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/qedit/main.c b/dlls/qedit/main.c index d8d02a3dc08..4f7ba1b7348 100644 --- a/dlls/qedit/main.c +++ b/dlls/qedit/main.c @@ -32,8 +32,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) instance = hInstDLL; DisableThreadLibraryCalls(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/qmgr/qmgr_main.c b/dlls/qmgr/qmgr_main.c index 6cf9668390e..051c3a5d200 100644 --- a/dlls/qmgr/qmgr_main.c +++ b/dlls/qmgr/qmgr_main.c @@ -57,8 +57,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) DisableThreadLibraryCalls(hinstDLL); hInst = hinstDLL; break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/query/query_main.c b/dlls/query/query_main.c index 3414aecb2b7..c6dde22a887 100644 --- a/dlls/query/query_main.c +++ b/dlls/query/query_main.c @@ -46,8 +46,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/rstrtmgr/main.c b/dlls/rstrtmgr/main.c index 35e04a2537e..2d45639a1b3 100644 --- a/dlls/rstrtmgr/main.c +++ b/dlls/rstrtmgr/main.c @@ -42,9 +42,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/samlib/main.c b/dlls/samlib/main.c index 46e8f6e0fc1..e78e7a29b67 100644 --- a/dlls/samlib/main.c +++ b/dlls/samlib/main.c @@ -40,9 +40,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinst); break; - - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/sccbase/main.c b/dlls/sccbase/main.c index 7a012f5606c..1fb221f3402 100644 --- a/dlls/sccbase/main.c +++ b/dlls/sccbase/main.c @@ -37,10 +37,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; } diff --git a/dlls/serialui/confdlg.c b/dlls/serialui/confdlg.c index c5107146551..2b92dacea2b 100644 --- a/dlls/serialui/confdlg.c +++ b/dlls/serialui/confdlg.c @@ -73,8 +73,6 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) DisableThreadLibraryCalls(hinstDLL); SERIALUI_hModule = hinstDLL; break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/slbcsp/main.c b/dlls/slbcsp/main.c index a6aece1b09d..d0e74e68ade 100644 --- a/dlls/slbcsp/main.c +++ b/dlls/slbcsp/main.c @@ -37,10 +37,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; - default: - break; } return TRUE; } diff --git a/dlls/snmpapi/main.c b/dlls/snmpapi/main.c index 1c4d1fa36cd..2101ec8d104 100644 --- a/dlls/snmpapi/main.c +++ b/dlls/snmpapi/main.c @@ -131,8 +131,6 @@ BOOL WINAPI DllMain( DisableThreadLibraryCalls(hInstDLL); startTime = GetTickCount64(); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/svrapi/svrapi_main.c b/dlls/svrapi/svrapi_main.c index 364ecfd80ea..f4ac4757273 100644 --- a/dlls/svrapi/svrapi_main.c +++ b/dlls/svrapi/svrapi_main.c @@ -42,8 +42,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/t2embed/main.c b/dlls/t2embed/main.c index f3f1a004a39..e92c49cf227 100644 --- a/dlls/t2embed/main.c +++ b/dlls/t2embed/main.c @@ -39,8 +39,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/userenv/userenv_main.c b/dlls/userenv/userenv_main.c index f0184e520da..ae5c590311a 100644 --- a/dlls/userenv/userenv_main.c +++ b/dlls/userenv/userenv_main.c @@ -47,8 +47,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/uxtheme/main.c b/dlls/uxtheme/main.c index 74444e9d539..5c0acf1496f 100644 --- a/dlls/uxtheme/main.c +++ b/dlls/uxtheme/main.c @@ -41,8 +41,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) DisableThreadLibraryCalls(hInstDLL); UXTHEME_InitSystem(hInstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/vcomp/main.c b/dlls/vcomp/main.c index 38b76da9423..ab2a3729ae1 100644 --- a/dlls/vcomp/main.c +++ b/dlls/vcomp/main.c @@ -118,8 +118,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/vcomp100/main.c b/dlls/vcomp100/main.c index a5105d33f4c..7ba18d19083 100644 --- a/dlls/vcomp100/main.c +++ b/dlls/vcomp100/main.c @@ -40,8 +40,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/vcomp90/main.c b/dlls/vcomp90/main.c index 4c2d864ddde..55b5cf8b538 100644 --- a/dlls/vcomp90/main.c +++ b/dlls/vcomp90/main.c @@ -40,8 +40,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/wbemprox/main.c b/dlls/wbemprox/main.c index 3e26a6f4079..346ee87befc 100644 --- a/dlls/wbemprox/main.c +++ b/dlls/wbemprox/main.c @@ -128,8 +128,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) DisableThreadLibraryCalls(hinstDLL); init_table_list(); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/webservices/main.c b/dlls/webservices/main.c index f00e6f38b26..db8aaeaf058 100644 --- a/dlls/webservices/main.c +++ b/dlls/webservices/main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(instance); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/wer/main.c b/dlls/wer/main.c index 80880c3c588..0e14eee7912 100644 --- a/dlls/wer/main.c +++ b/dlls/wer/main.c @@ -80,8 +80,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/wevtapi/main.c b/dlls/wevtapi/main.c index fb673bb07f8..ecb84276244 100644 --- a/dlls/wevtapi/main.c +++ b/dlls/wevtapi/main.c @@ -39,8 +39,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/wiaservc/wiaservc_main.c b/dlls/wiaservc/wiaservc_main.c index e383aeed018..a5f9607665d 100644 --- a/dlls/wiaservc/wiaservc_main.c +++ b/dlls/wiaservc/wiaservc_main.c @@ -53,8 +53,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) DisableThreadLibraryCalls(hinstDLL); hInst = hinstDLL; break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/windowscodecs/main.c b/dlls/windowscodecs/main.c index 967f80b2ea4..8efaee654aa 100644 --- a/dlls/windowscodecs/main.c +++ b/dlls/windowscodecs/main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return WIC_DllMain(hinstDLL, fdwReason, lpvReserved); diff --git a/dlls/windowscodecsext/main.c b/dlls/windowscodecsext/main.c index d7f74ff614b..c22766c7843 100644 --- a/dlls/windowscodecsext/main.c +++ b/dlls/windowscodecsext/main.c @@ -43,8 +43,6 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(instance); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/wlanapi/main.c b/dlls/wlanapi/main.c index 7db6faba670..0b0d1002aec 100644 --- a/dlls/wlanapi/main.c +++ b/dlls/wlanapi/main.c @@ -45,8 +45,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/wldap32/main.c b/dlls/wldap32/main.c index a00dee3bd70..ce9e60367b9 100644 --- a/dlls/wldap32/main.c +++ b/dlls/wldap32/main.c @@ -40,8 +40,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) hwldap32 = hinst; DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/wmiutils/main.c b/dlls/wmiutils/main.c index f249f309d5a..c088a682f0e 100644 --- a/dlls/wmiutils/main.c +++ b/dlls/wmiutils/main.c @@ -127,8 +127,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv ) instance = hinst; DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/wmvcore/wmvcore_main.c b/dlls/wmvcore/wmvcore_main.c index b9cdd22b453..cb52b05068f 100644 --- a/dlls/wmvcore/wmvcore_main.c +++ b/dlls/wmvcore/wmvcore_main.c @@ -38,8 +38,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/wsnmp32/wsnmp32.c b/dlls/wsnmp32/wsnmp32.c index 6ace8955263..838c9bb8d31 100644 --- a/dlls/wsnmp32/wsnmp32.c +++ b/dlls/wsnmp32/wsnmp32.c @@ -34,8 +34,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/wuapi/main.c b/dlls/wuapi/main.c index 80daca0c110..b6490eb1f76 100644 --- a/dlls/wuapi/main.c +++ b/dlls/wuapi/main.c @@ -128,8 +128,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv ) instance = hinst; DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/wuaueng/main.c b/dlls/wuaueng/main.c index 487c302f4aa..8e11b01d20d 100644 --- a/dlls/wuaueng/main.c +++ b/dlls/wuaueng/main.c @@ -40,9 +40,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/xapofx1_1/main.c b/dlls/xapofx1_1/main.c index 1dc0829d73a..8fd6022f3ce 100644 --- a/dlls/xapofx1_1/main.c +++ b/dlls/xapofx1_1/main.c @@ -40,9 +40,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinst); break; - - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/xinput1_1/xinput1_1_main.c b/dlls/xinput1_1/xinput1_1_main.c index 18cde9e6652..2de4317ed77 100644 --- a/dlls/xinput1_1/xinput1_1_main.c +++ b/dlls/xinput1_1/xinput1_1_main.c @@ -32,8 +32,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/xinput1_2/xinput1_2_main.c b/dlls/xinput1_2/xinput1_2_main.c index 18cde9e6652..2de4317ed77 100644 --- a/dlls/xinput1_2/xinput1_2_main.c +++ b/dlls/xinput1_2/xinput1_2_main.c @@ -32,8 +32,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/xinput1_3/xinput1_3_main.c b/dlls/xinput1_3/xinput1_3_main.c index 2b3a5f737d6..a2a83dd04d3 100644 --- a/dlls/xinput1_3/xinput1_3_main.c +++ b/dlls/xinput1_3/xinput1_3_main.c @@ -40,8 +40,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/xinput9_1_0/xinput9_1_0_main.c b/dlls/xinput9_1_0/xinput9_1_0_main.c index 18cde9e6652..2de4317ed77 100644 --- a/dlls/xinput9_1_0/xinput9_1_0_main.c +++ b/dlls/xinput9_1_0/xinput9_1_0_main.c @@ -32,8 +32,6 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(inst); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/xmllite/xmllite_main.c b/dlls/xmllite/xmllite_main.c index 43833bc8e09..63838a99f75 100644 --- a/dlls/xmllite/xmllite_main.c +++ b/dlls/xmllite/xmllite_main.c @@ -39,8 +39,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/xolehlp/xolehlp.c b/dlls/xolehlp/xolehlp.c index 957374414a1..e1ec12cb30d 100644 --- a/dlls/xolehlp/xolehlp.c +++ b/dlls/xolehlp/xolehlp.c @@ -34,8 +34,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/dlls/xpsprint/main.c b/dlls/xpsprint/main.c index 0604665d760..be704736982 100644 --- a/dlls/xpsprint/main.c +++ b/dlls/xpsprint/main.c @@ -35,8 +35,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls(hinstDLL); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; diff --git a/dlls/xpssvcs/main.c b/dlls/xpssvcs/main.c index 98e4643617b..36ec42d65d1 100644 --- a/dlls/xpssvcs/main.c +++ b/dlls/xpssvcs/main.c @@ -31,8 +31,6 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) case DLL_PROCESS_ATTACH: DisableThreadLibraryCalls( hinst ); break; - case DLL_PROCESS_DETACH: - break; } return TRUE; } diff --git a/tools/winedump/output.c b/tools/winedump/output.c index fecb885d606..c810f24c5b7 100644 --- a/tools/winedump/output.c +++ b/tools/winedump/output.c @@ -256,17 +256,17 @@ void output_c_preamble (void) " DisableThreadLibraryCalls(instance);\n"); fprintf (cfile, - " break;\n" - " case DLL_PROCESS_DETACH:\n"); + " break;\n"); if (globals.forward_dll) fprintf (cfile, + " case DLL_PROCESS_DETACH:\n" " FreeLibrary(hDLL);\n" - " TRACE(\"Forwarding DLL (%s) freed\\n\");\n", + " TRACE(\"Forwarding DLL (%s) freed\\n\");\n" + " break;\n", globals.forward_dll); fprintf (cfile, - " break;\n" " }\n\n" " return TRUE;\n}\n"); }