VirtualBox

Ignore:
Timestamp:
Nov 15, 2012 2:49:23 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
82091
Message:

Extended RTOnce with termination cleanups. (Changes existing structures and functions.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/pathhost-posix.cpp

    r37563 r43879  
    135135 * @param   pvUser2             Unused.
    136136 */
    137 static DECLCALLBACK(int32_t) rtPathConvInitOnce(void *pvUser1, void *pvUser2)
     137static DECLCALLBACK(int32_t) rtPathConvInitOnce(void *pvUser)
    138138{
    139139    /*
     
    173173    }
    174174
    175     NOREF(pvUser1); NOREF(pvUser2);
     175    NOREF(pvUser);
    176176    return VINF_SUCCESS;
    177177}
     
    182182    *ppszNativePath = NULL;
    183183
    184     int rc = RTOnce(&g_OnceInitPathConv, rtPathConvInitOnce, NULL, NULL);
     184    int rc = RTOnce(&g_OnceInitPathConv, rtPathConvInitOnce, NULL);
    185185    if (RT_SUCCESS(rc))
    186186    {
     
    209209    *ppszPath = NULL;
    210210
    211     int rc = RTOnce(&g_OnceInitPathConv, rtPathConvInitOnce, NULL, NULL);
     211    int rc = RTOnce(&g_OnceInitPathConv, rtPathConvInitOnce, NULL);
    212212    if (RT_SUCCESS(rc))
    213213    {
     
    247247int rtPathFromNativeCopy(char *pszPath, size_t cbPath, const char *pszNativePath, const char *pszBasePath)
    248248{
    249     int rc = RTOnce(&g_OnceInitPathConv, rtPathConvInitOnce, NULL, NULL);
     249    int rc = RTOnce(&g_OnceInitPathConv, rtPathConvInitOnce, NULL);
    250250    if (RT_SUCCESS(rc))
    251251    {
     
    267267int rtPathFromNativeDup(char **ppszPath, const char *pszNativePath, const char *pszBasePath)
    268268{
    269     int rc = RTOnce(&g_OnceInitPathConv, rtPathConvInitOnce, NULL, NULL);
     269    int rc = RTOnce(&g_OnceInitPathConv, rtPathConvInitOnce, NULL);
    270270    if (RT_SUCCESS(rc))
    271271    {
Note: See TracChangeset for help on using the changeset viewer.

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