VirtualBox

Ignore:
Timestamp:
Dec 12, 2023 5:35:32 PM (14 months ago)
Author:
vboxsync
Message:

IPRT/http-curl: nits (some mine)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r102563 r102589  
    365365static PFNLIBPROXYFACTORYDTOR                   g_pfnLibProxyFactoryDtor = NULL;
    366366static 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). */
    368368static PFNLIBPROXYFACTORYFREEPROXIES            g_pfnLibProxyFactoryFreeProxies = NULL;
    369369/** @} */
     
    10671067            rc = RTLdrGetSymbol(hMod, "px_proxy_factory_get_proxies", (void **)&g_pfnLibProxyFactoryGetProxies);
    10681068        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. */
    10711070            RTLdrGetSymbol(hMod, "px_proxy_factory_free_proxies", (void **)&g_pfnLibProxyFactoryFreeProxies);
    1072         }
    10731071        if (RT_SUCCESS(rc))
    10741072        {
     
    11001098    {
    11011099        /*
    1102          * Instance the factory and ask for a list of proxies.
     1100         * Instanciate the factory and ask for a list of proxies.
    11031101         */
    11041102        PLIBPROXYFACTORY pFactory = g_pfnLibProxyFactoryCtor();
     
    11291127                /* Free the result. */
    11301128                if (g_pfnLibProxyFactoryFreeProxies) /* libproxy >= 0.4.16. */
    1131                 {
    11321129                    g_pfnLibProxyFactoryFreeProxies(papszProxies);
    1133                 }
    11341130                else
    11351131                {
     
    11401136                papszProxies = NULL;
    11411137            }
    1142 
    11431138            g_pfnLibProxyFactoryDtor(pFactory);
    11441139        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette