VirtualBox

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


Ignore:
Timestamp:
Feb 4, 2008 5:22:28 PM (17 years ago)
Author:
vboxsync
Message:

Wrong parameters order.

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r6762 r6792  
    560560}
    561561
    562 int VMMDev::hgcmLoadService (const char *pszServiceName, const char *pszServiceLibrary)
    563 {
    564     return HGCMHostLoad (pszServiceName, pszServiceLibrary);
     562int VMMDev::hgcmLoadService (const char *pszServiceLibrary, const char *pszServiceName)
     563{
     564    return HGCMHostLoad (pszServiceLibrary, pszServiceName);
    565565}
    566566
  • trunk/src/VBox/Main/hgcm/HGCM.cpp

    r5999 r6792  
    860860/* static */ int HGCMService::LoadService (const char *pszServiceLibrary, const char *pszServiceName)
    861861{
    862     LogFlowFunc(("name = %s, lib %s\n", pszServiceName, pszServiceLibrary));
     862    LogFlowFunc(("lib %s, name = %s\n", pszServiceLibrary, pszServiceName));
    863863
    864864    /* Look at already loaded services to avoid double loading. */
     
    16841684                             pMsg->pszServiceName, pMsg->pszServiceLibrary));
    16851685
    1686                 rc = HGCMService::LoadService (pMsg->pszServiceName, pMsg->pszServiceLibrary);
     1686                rc = HGCMService::LoadService (pMsg->pszServiceLibrary, pMsg->pszServiceName);
    16871687            } break;
    16881688
     
    18321832 * Assign the specified name to the service.
    18331833 *
     1834 * @param pszServiceLibrary  The library to be loaded.
    18341835 * @param pszServiceName     The name to be assigned to the service.
    1835  * @param pszServiceLibrary  The library to be loaded.
    18361836 * @return VBox rc.
    18371837 */
    1838 int HGCMHostLoad (const char *pszServiceName,
    1839                   const char *pszServiceLibrary)
    1840 {
    1841     LogFlowFunc(("name = %s, lib = %s\n", pszServiceName, pszServiceLibrary));
    1842 
    1843     if (!pszServiceName || !pszServiceLibrary)
     1838int HGCMHostLoad (const char *pszServiceLibrary,
     1839                  const char *pszServiceName)
     1840{
     1841    LogFlowFunc(("lib = %s, name = %s\n", pszServiceLibrary, pszServiceName));
     1842
     1843    if (!pszServiceLibrary || !pszServiceName)
    18441844    {
    18451845        return VERR_INVALID_PARAMETER;
     
    18571857        AssertRelease(pMsg);
    18581858
     1859        pMsg->pszServiceLibrary = pszServiceLibrary;
    18591860        pMsg->pszServiceName    = pszServiceName;
    1860         pMsg->pszServiceLibrary = pszServiceLibrary;
    18611861
    18621862        hgcmObjDereference (pMsg);
  • trunk/src/VBox/Main/include/VMMDev.h

    r5999 r6792  
    4949    PPDMIVMMDEVPORT getVMMDevPort();
    5050
    51     int hgcmLoadService (const char *pszServiceName, const char *pszServiceLibrary);
     51    int hgcmLoadService (const char *pszServiceLibrary, const char *pszServiceName);
    5252    int hgcmHostCall (const char *pszServiceName, uint32_t u32Function, uint32_t cParms, PVBOXHGCMSVCPARM paParms);
    5353    void hgcmShutdown (void);
  • trunk/src/VBox/Main/include/hgcm/HGCM.h

    r5999 r6792  
    3939int HGCMHostReset (void);
    4040
    41 int HGCMHostLoad (const char *pszServiceName, const char *pszServiceLibrary);
     41int HGCMHostLoad (const char *pszServiceLibrary, const char *pszServiceName);
    4242
    4343int HGCMHostRegisterServiceExtension (HGCMSVCEXTHANDLE *pHandle, const char *pszServiceName, PFNHGCMSVCEXT pfnExtension, void *pvExtension);
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