Francois Gouget : winmm: WINMM_CheckForMMSystem() is not used, remove it.

Alexandre Julliard julliard at winehq.org
Mon Nov 9 15:14:14 CST 2009


Module: wine
Branch: master
Commit: 6f643290cf1cc28bda57a1c84379d052e0b585c3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6f643290cf1cc28bda57a1c84379d052e0b585c3

Author: Francois Gouget <fgouget at free.fr>
Date:   Sun Nov  8 10:57:58 2009 +0100

winmm: WINMM_CheckForMMSystem() is not used, remove it.

---

 dlls/winmm/winmm.c |   28 ----------------------------
 1 files changed, 0 insertions(+), 28 deletions(-)

diff --git a/dlls/winmm/winmm.c b/dlls/winmm/winmm.c
index 677bfa3..ef993f2 100644
--- a/dlls/winmm/winmm.c
+++ b/dlls/winmm/winmm.c
@@ -99,34 +99,6 @@ static	void WINMM_DeleteIData(void)
 }
 
 /******************************************************************
- *             WINMM_LoadMMSystem
- *
- */
-static HANDLE (WINAPI *pGetModuleHandle16)(LPCSTR);
-static DWORD (WINAPI *pLoadLibrary16)(LPCSTR);
-
-BOOL WINMM_CheckForMMSystem(void)
-{
-    /* 0 is not checked yet, -1 is not present, 1 is present */
-    static      int    loaded /* = 0 */;
-
-    if (loaded == 0)
-    {
-        HANDLE      h = GetModuleHandleA("kernel32");
-        loaded = -1;
-        if (h)
-        {
-            pGetModuleHandle16 = (void*)GetProcAddress(h, "GetModuleHandle16");
-            pLoadLibrary16 = (void*)GetProcAddress(h, (LPCSTR)35); /* ordinal for LoadLibrary16 */
-            if (pGetModuleHandle16 && pLoadLibrary16 &&
-                (pGetModuleHandle16("MMSYSTEM.DLL") || pLoadLibrary16("MMSYSTEM.DLL")))
-                loaded = 1;
-        }
-    }
-    return loaded > 0;
-}
-
-/******************************************************************
  *             WINMM_ErrorToString
  */
 const char* WINMM_ErrorToString(MMRESULT error)




More information about the wine-cvs mailing list