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.
--- 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");