wine/dlls/winmm winmm.c

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 28 05:01:05 CST 2005


ChangeSet ID:	21456
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/11/28 05:01:05

Modified files:
	dlls/winmm     : winmm.c 

Log message:
	Eric Pouech <eric.pouech at wanadoo.fr>
	LoadLibrary16 is no longer exported by name, so do the lookup by its
	ordinal (when loading NE sibling).

Patch: http://cvs.winehq.org/patch.py?id=21456

Old revision  New revision  Changes     Path
 1.57          1.58          +1 -1       wine/dlls/winmm/winmm.c

Index: wine/dlls/winmm/winmm.c
diff -u -p wine/dlls/winmm/winmm.c:1.57 wine/dlls/winmm/winmm.c:1.58
--- wine/dlls/winmm/winmm.c:1.57	28 Nov 2005 11: 1: 5 -0000
+++ wine/dlls/winmm/winmm.c	28 Nov 2005 11: 1: 5 -0000
@@ -116,7 +116,7 @@ BOOL WINMM_CheckForMMSystem(void)
         if (h)
         {
             pGetModuleHandle16 = (void*)GetProcAddress(h, "GetModuleHandle16");
-            pLoadLibrary16 = (void*)GetProcAddress(h, "LoadLibrary16");
+            pLoadLibrary16 = (void*)GetProcAddress(h, (LPCSTR)35); /* ordinal for LoadLibrary16 */
             if (pGetModuleHandle16 && pLoadLibrary16 &&
                 (pGetModuleHandle16("MMSYSTEM.DLL") || pLoadLibrary16("MMSYSTEM.DLL")))
                 loaded = 1;



More information about the wine-cvs mailing list