LoadLibrary16 is no longer exported by name, so do the lookup by its

ordinal (when loading NE sibling).
This commit is contained in:
Eric Pouech 2005-11-28 10:40:25 +01:00 committed by Alexandre Julliard
parent 39e922ce72
commit 7ec69e9c2b
1 changed files with 1 additions and 1 deletions

View File

@ -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;