VirtualBox

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


Ignore:
Timestamp:
Feb 4, 2008 5:22:28 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27888
Message:

Wrong parameters order.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
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