VirtualBox

Ignore:
Timestamp:
Apr 8, 2008 3:44:09 PM (17 years ago)
Author:
vboxsync
Message:

HGCM: Add user data pointer to HGCM service function table - fixed a parameter mismatch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedFolders/service.cpp

    r7810 r7812  
    12241224}
    12251225
    1226 extern "C" DECLCALLBACK(DECLEXPORT(int)) VBoxHGCMSvcLoad (void *, VBOXHGCMSVCFNTABLE *ptable)
     1226extern "C" DECLCALLBACK(DECLEXPORT(int)) VBoxHGCMSvcLoad (VBOXHGCMSVCFNTABLE *ptable)
    12271227{
    12281228    int rc = VINF_SUCCESS;
     
    12301230    Log(("VBoxHGCMSvcLoad: ptable = %p\n", ptable));
    12311231
    1232     if (!ptable)
     1232    if (!VALID_PTR(ptable))
    12331233    {
     1234        LogRelFunc(("Bad value of ptable (%p) in shared folders service\n", ptable));
    12341235        rc = VERR_INVALID_PARAMETER;
    12351236    }
     
    12411242            ||  ptable->u32Version != VBOX_HGCM_SVC_VERSION)
    12421243        {
    1243             rc = VERR_INVALID_PARAMETER;
     1244            LogRelFunc(("version mismatch loading shared folders service: ptable->cbSize = %d, should be %d, ptable->u32Version = 0x%08X, should be 0x%08X\n", ptable->cbSize, sizeof (VBOXHGCMSVCFNTABLE), ptable->u32Version, VBOX_HGCM_SVC_VERSION));
     1245            rc = VERR_VERSION_MISMATCH;
    12441246        }
    12451247        else
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