vrclient: Fix incorrect size paramter passed to lin_to_win.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-09-27 15:08:47 +02:00 committed by Arkadiusz Hiler
parent 453b5bdc5a
commit cc38f0c8c1
36 changed files with 194 additions and 189 deletions

View file

@ -240,8 +240,8 @@ bool cppIVROverlay_IVROverlay_025_PollNextOverlayEvent(void *linux_side, VROverl
bool _ret;
if(pEvent)
struct_VREvent_t_1168_win_to_lin(pEvent, &lin);
uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, (uint32_t)uncbVREvent);
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent);
if(pEvent)
struct_VREvent_t_1168_lin_to_win(&lin, pEvent, uncbVREvent);
return _ret;