[MPlayer-cvslog] r31195 - trunk/loader/module.c
diego
subversion at mplayerhq.hu
Sun May 23 17:50:49 CEST 2010
Author: diego
Date: Sun May 23 17:50:49 2010
New Revision: 31195
Log:
Remove unused function MODULE_DecRefCount(), fixes the warning:
loader/module.c:618: warning: 'MODULE_DecRefCount' defined but not used
Modified:
trunk/loader/module.c
Modified: trunk/loader/module.c
==============================================================================
--- trunk/loader/module.c Sun May 23 17:07:34 2010 (r31194)
+++ trunk/loader/module.c Sun May 23 17:50:49 2010 (r31195)
@@ -347,9 +347,6 @@ static WIN_BOOL MODULE_FreeLibrary( WINE
{
TRACE("(%s) - START\n", wm->modname );
- /* Recursively decrement reference counts */
- //MODULE_DecRefCount( wm );
-
/* Call process detach notifications */
MODULE_DllProcessDetach( wm, FALSE, NULL );
@@ -610,36 +607,6 @@ WIN_BOOL WINAPI FreeLibrary(HINSTANCE hL
}
/***********************************************************************
- * MODULE_DecRefCount
- *
- * NOTE: Assumes that the process critical section is held!
- */
-static void MODULE_DecRefCount( WINE_MODREF *wm )
-{
- int i;
-
- if ( wm->flags & WINE_MODREF_MARKER )
- return;
-
- if ( wm->refCount <= 0 )
- return;
-
- --wm->refCount;
- TRACE("(%s) refCount: %d\n", wm->modname, wm->refCount );
-
- if ( wm->refCount == 0 )
- {
- wm->flags |= WINE_MODREF_MARKER;
-
- for ( i = 0; i < wm->nDeps; i++ )
- if ( wm->deps[i] )
- MODULE_DecRefCount( wm->deps[i] );
-
- wm->flags &= ~WINE_MODREF_MARKER;
- }
-}
-
-/***********************************************************************
* GetProcAddress (KERNEL32.257)
*/
FARPROC WINAPI GetProcAddress( HMODULE hModule, LPCSTR function )
More information about the MPlayer-cvslog
mailing list