"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "misc/win32/misc.c" between
apr-1.6.5.tar.bz2 and apr-1.7.0.tar.bz2

About: APR (Apache Portable Runtime) project offers software libraries that provide a predictable and consistent interface to underlying platform-specific implementations (APR core library).

misc.c  (apr-1.6.5.tar.bz2):misc.c  (apr-1.7.0.tar.bz2)
skipping to change at line 166 skipping to change at line 166
} }
return APR_SUCCESS; return APR_SUCCESS;
} }
/* This is the helper code to resolve late bound entry points /* This is the helper code to resolve late bound entry points
* missing from one or more releases of the Win32 API * missing from one or more releases of the Win32 API
*/ */
static const char* const lateDllName[DLL_defined] = { static const char* const lateDllName[DLL_defined] = {
"kernel32", "advapi32", "mswsock", "ws2_32", "shell32", "ntdll.dll" }; "kernel32", "advapi32", "mswsock", "ws2_32", "shell32", "ntdll.dll",
"Iphplapi" };
static HMODULE lateDllHandle[DLL_defined] = { static HMODULE lateDllHandle[DLL_defined] = {
NULL, NULL, NULL, NULL, NULL, NULL }; NULL, NULL, NULL, NULL, NULL, NULL,
NULL };
FARPROC apr_load_dll_func(apr_dlltoken_e fnLib, char* fnName, int ordinal) FARPROC apr_load_dll_func(apr_dlltoken_e fnLib, char* fnName, int ordinal)
{ {
if (!lateDllHandle[fnLib]) { if (!lateDllHandle[fnLib]) {
lateDllHandle[fnLib] = LoadLibraryA(lateDllName[fnLib]); lateDllHandle[fnLib] = LoadLibraryA(lateDllName[fnLib]);
if (!lateDllHandle[fnLib]) if (!lateDllHandle[fnLib])
return NULL; return NULL;
} }
#if defined(_WIN32_WCE) #if defined(_WIN32_WCE)
if (ordinal) if (ordinal)
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)