mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-31 11:44:30 +01:00
vrclient: Handle NULL parameters to wrapped structs
This commit is contained in:
parent
13d37fd406
commit
8de08a1485
35 changed files with 228 additions and 155 deletions
|
|
@ -238,8 +238,9 @@ bool cppIVROverlay_IVROverlay_016_PollNextOverlayEvent(void *linux_side, VROverl
|
|||
{
|
||||
VREvent_t lin;
|
||||
bool _ret;
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, &lin, sizeof(lin));
|
||||
struct_VREvent_t_1010_lin_to_win(&lin, pEvent);
|
||||
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, uncbVREvent ? sizeof(lin) : 0);
|
||||
if(pEvent)
|
||||
struct_VREvent_t_1010_lin_to_win(&lin, pEvent);
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue