~ubuntu-branches/ubuntu/quantal/virtualbox/quantal

« back to all changes in this revision

Viewing changes to src/VBox/Additions/common/VBoxGuestLib/HGCM.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-04-05 12:41:55 UTC
  • mfrom: (3.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120405124155-i7b39tv5ddwhubbe
Tags: 4.1.12-dfsg-2
* Upstream has replaced the 4.1.12 tarball with a new one that fixes a
  crash when creating host only interfaces. (Closes: #667460)
  - Add 36-tarball-respin.patch which contains the diff between the old
    and the new tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Revision: 60692 $ */
 
1
/* $Revision: 76864 $ */
2
2
/** @file
3
3
 * VBoxGuestLib - Host-Guest Communication Manager.
4
4
 *
197
197
    return rc;
198
198
}
199
199
 
 
200
DECLVBGL(int) VbglHGCMCallUserData (VBGLHGCMHANDLE handle, VBoxGuestHGCMCallInfo *pData, uint32_t cbData)
 
201
{
 
202
    int rc = VINF_SUCCESS;
 
203
 
 
204
    VBGL_HGCM_ASSERTMsg(cbData >= sizeof (VBoxGuestHGCMCallInfo) + pData->cParms * sizeof (HGCMFunctionParameter),
 
205
                        ("cbData = %d, cParms = %d (calculated size %d)\n", cbData, pData->cParms, sizeof (VBoxGuestHGCMCallInfo) + pData->cParms * sizeof (VBoxGuestHGCMCallInfo)));
 
206
 
 
207
    rc = vbglDriverIOCtl (&handle->driver, VBOXGUEST_IOCTL_HGCM_CALL_USERDATA(cbData), pData, cbData);
 
208
 
 
209
    return rc;
 
210
}
 
211
 
 
212
 
200
213
DECLVBGL(int) VbglHGCMCallTimed (VBGLHGCMHANDLE handle,
201
214
                                 VBoxGuestHGCMCallInfoTimed *pData, uint32_t cbData)
202
215
{