# HG changeset patch # User Faisal Memon # Date 1279302843 -3600 # Node ID 5f371025658cdeae9a3a88f2b0caad654a2a636f # Parent 6aeef2faff80c91030d0ba87d84b8dad2cbdef54 Chop out the code that handles "additional _E32Dll entry point after last ordinal position". I can't agree with that as how the DLL is supposed to work, and gives errors for me. Maybe the scripts to re-generate the jump tables have not been tried recently so its not a problem that's been hit by others. diff -r 6aeef2faff80 -r 5f371025658c egl/eglswitch/src/eglswitch.cpp --- a/egl/eglswitch/src/eglswitch.cpp Fri Jul 02 18:48:10 2010 +0100 +++ b/egl/eglswitch/src/eglswitch.cpp Fri Jul 16 18:54:03 2010 +0100 @@ -59,21 +59,14 @@ address = GetProcAddress(aDll, (LPCSTR)i); if (address == NULL) { + RDebug::Printf("No entry point at %d\n", i); Stop("... has too few exported functions"); } vector[i] = address; } - // There's an additional _E32Dll entry point after last ordinal position. - // Read it, but no need to store it + // next position should be empty address = GetProcAddress(aDll, (LPCSTR)(MAX_ORDINAL+1)); - if (address == NULL) - { - Stop("... has too few exported functions"); - } - - // next position should be empty - address = GetProcAddress(aDll, (LPCSTR)(MAX_ORDINAL+2)); if (address != NULL) { Stop("... has too many exported functions");