egl/eglswitch/src/eglswitch.cpp
branchEGL_MERGE
changeset 119 5f371025658c
parent 0 5d03bc08d59c
equal deleted inserted replaced
118:6aeef2faff80 119:5f371025658c
    57 	for (int i=1;i<=MAX_ORDINAL;i++)
    57 	for (int i=1;i<=MAX_ORDINAL;i++)
    58 		{
    58 		{
    59 		address = GetProcAddress(aDll, (LPCSTR)i);
    59 		address = GetProcAddress(aDll, (LPCSTR)i);
    60 		if (address == NULL)
    60 		if (address == NULL)
    61 			{
    61 			{
       
    62 			RDebug::Printf("No entry point at %d\n", i);
    62 			Stop("... has too few exported functions");
    63 			Stop("... has too few exported functions");
    63 			}
    64 			}
    64 		vector[i] = address;
    65 		vector[i] = address;
    65 		}
    66 		}
    66 
    67 
    67 	// There's an additional _E32Dll entry point after last ordinal position.
    68 	// next position should be empty
    68 	// Read it, but no need to store it
       
    69 	address = GetProcAddress(aDll, (LPCSTR)(MAX_ORDINAL+1));
    69 	address = GetProcAddress(aDll, (LPCSTR)(MAX_ORDINAL+1));
    70 	if (address == NULL)
       
    71 		{
       
    72 		Stop("... has too few exported functions");
       
    73 		}
       
    74 
       
    75 	// next position should be empty
       
    76 	address = GetProcAddress(aDll, (LPCSTR)(MAX_ORDINAL+2));
       
    77 	if (address != NULL)
    70 	if (address != NULL)
    78 		{
    71 		{
    79 		Stop("... has too many exported functions");
    72 		Stop("... has too many exported functions");
    80 		}
    73 		}
    81 	
    74