Changeset 102589 in vbox for trunk/src/VBox/Runtime/generic/http-curl.cpp
- Timestamp:
- Dec 12, 2023 5:35:32 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/http-curl.cpp
r102563 r102589 365 365 static PFNLIBPROXYFACTORYDTOR g_pfnLibProxyFactoryDtor = NULL; 366 366 static PFNLIBPROXYFACTORYGETPROXIES g_pfnLibProxyFactoryGetProxies = NULL; 367 /** Note: Only valid for libproxy >= 0.4.16. */367 /** Can be NULL, as it was introduced with libproxy v0.4.16 (2020-12-04). */ 368 368 static PFNLIBPROXYFACTORYFREEPROXIES g_pfnLibProxyFactoryFreeProxies = NULL; 369 369 /** @} */ … … 1067 1067 rc = RTLdrGetSymbol(hMod, "px_proxy_factory_get_proxies", (void **)&g_pfnLibProxyFactoryGetProxies); 1068 1068 if (RT_SUCCESS(rc)) 1069 { 1070 /* libproxy < 0.4.16 does not have this function, so this is not fatal if not found. */ 1069 /* libproxy < 0.4.16 does not have this function, so ignore the return code. */ 1071 1070 RTLdrGetSymbol(hMod, "px_proxy_factory_free_proxies", (void **)&g_pfnLibProxyFactoryFreeProxies); 1072 }1073 1071 if (RT_SUCCESS(rc)) 1074 1072 { … … 1100 1098 { 1101 1099 /* 1102 * Instanc e the factory and ask for a list of proxies.1100 * Instanciate the factory and ask for a list of proxies. 1103 1101 */ 1104 1102 PLIBPROXYFACTORY pFactory = g_pfnLibProxyFactoryCtor(); … … 1129 1127 /* Free the result. */ 1130 1128 if (g_pfnLibProxyFactoryFreeProxies) /* libproxy >= 0.4.16. */ 1131 {1132 1129 g_pfnLibProxyFactoryFreeProxies(papszProxies); 1133 }1134 1130 else 1135 1131 { … … 1140 1136 papszProxies = NULL; 1141 1137 } 1142 1143 1138 g_pfnLibProxyFactoryDtor(pFactory); 1144 1139 }
Note:
See TracChangeset
for help on using the changeset viewer.