msvidc32: Remove unused DllMain() function

Francois Gouget fgouget at free.fr
Fri Dec 2 05:28:09 CST 2005


msvideo1.c defines a DllMain() function but:
  * it is not exported in the spec file
  * it is not referenced in any way anywhere else
  * the native dll does not export a DllMain function either

So I propose to just remove this DllMain() function.

Changelog:

  * dlls/msvidc32/msvideo1.c

    Francois Gouget <fgouget at free.fr>
    Remove unused DllMain() function.


-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
The nice thing about meditation is that it makes doing nothing quite respectable
                                   -- Paul Dean
-------------- next part --------------
Index: dlls/msvidc32/msvideo1.c
===================================================================
RCS file: /var/cvs/wine/dlls/msvidc32/msvideo1.c,v
retrieving revision 1.8
diff -u -p -r1.8 msvideo1.c
--- dlls/msvidc32/msvideo1.c	28 Nov 2005 20:12:34 -0000	1.8
+++ dlls/msvidc32/msvideo1.c	29 Nov 2005 13:48:04 -0000
@@ -560,20 +560,3 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PT
 
     return r;
 }
-
-BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
-{
-    TRACE("(%p,%ld,%p)\n", hModule, dwReason, lpReserved);
-
-    switch (dwReason)
-    {
-    case DLL_PROCESS_ATTACH:
-        DisableThreadLibraryCalls(hModule);
-        MSVIDC32_hModule = hModule;
-        break;
-
-    case DLL_PROCESS_DETACH:
-        break;
-    }
-    return TRUE;
-}


More information about the wine-patches mailing list