VirtualBox

Changeset 18891 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 14, 2009 2:35:04 PM (16 years ago)
Author:
vboxsync
Message:

VBoxXPCOMCGlue: removed the static variable as per the
suggestion on libvirt list. Check @bugref{2221#161} for
more details.

Location:
trunk/src/VBox/Main/cbinding
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/VBoxXPCOMCGlue.c

    r18871 r18891  
    6464void *g_hVBoxXPCOMC = NULL;
    6565/** The last load error. */
    66 char g_szVBoxErrMsg[256];
    67 /** Pointer to the VBoxXPCOMC function table.  */
    6866PCVBOXXPCOM g_pVBoxFuncs = NULL;
    6967/** Pointer to VBoxGetXPCOMCFunctions for the loaded VBoxXPCOMC so/dylib/dll. */
     
    9290    if (cbBufNeeded > sizeof(szBuf))
    9391    {
    94         sprintf(g_szVBoxErrMsg, "path buffer too small: %u bytes needed", (unsigned)cbBufNeeded);
    9592        return -1;
    9693    }
     
    128125                rc = 0;
    129126            }
    130             else
    131                 sprintf(g_szVBoxErrMsg, "%.80s: pfnGetFunctions(%#x) failed",
    132                         szBuf, VBOX_XPCOMC_VERSION);
    133127        }
    134         else
    135             sprintf(g_szVBoxErrMsg, "dlsym(%.80s/%.32s): %128s",
    136                     szBuf, VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME, dlerror());
    137128        if (rc != 0)
    138129        {
     
    141132        }
    142133    }
    143     else
    144         sprintf(g_szVBoxErrMsg, "dlopen(%.80s): %128s", szBuf, dlerror());
    145134    return rc;
    146135}
     
    212201    g_pVBoxFuncs = NULL;
    213202    g_pfnGetFunctions = NULL;
    214     memset(g_szVBoxErrMsg, 0, sizeof(g_szVBoxErrMsg));
    215203}
    216204
  • trunk/src/VBox/Main/cbinding/tstXPCOMCCall.c

    r18829 r18891  
    589589    if (VBoxCGlueInit() != 0)
    590590    {
    591         fprintf(stderr, "%s: FATAL: VBoxCGlueInit failed: %s\n",
    592                 argv[0], g_szVBoxErrMsg);
     591        fprintf(stderr, "%s: FATAL: VBoxCGlueInit failed.\n", argv[0]);
    593592        return EXIT_FAILURE;
    594593    }
  • trunk/src/VBox/Main/cbinding/tstXPCOMCGlue.c

    r18829 r18891  
    321321    if (VBoxCGlueInit() != 0)
    322322    {
    323         fprintf(stderr, "%s: FATAL: VBoxCGlueInit failed: %s\n",
    324                 argv[0], g_szVBoxErrMsg);
     323        fprintf(stderr, "%s: FATAL: VBoxCGlueInit failed.\n", argv[0]);
    325324        return EXIT_FAILURE;
    326325    }
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