From 7ec69e9c2b293d72d92fcb1163641ea66fac66d8 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Mon, 28 Nov 2005 10:40:25 +0100 Subject: [PATCH] LoadLibrary16 is no longer exported by name, so do the lookup by its ordinal (when loading NE sibling). --- dlls/winmm/winmm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winmm/winmm.c b/dlls/winmm/winmm.c index 6877294078c..6b9ccb6d096 100644 --- a/dlls/winmm/winmm.c +++ b/dlls/winmm/winmm.c @@ -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;