minor bugfixes

This commit is contained in:
Will Xyen
2020-09-12 07:53:00 -07:00
parent 128496901e
commit 1712f10f66
4 changed files with 10 additions and 2 deletions

View File

@@ -95,7 +95,13 @@ static HRESULT STDCALL my_DirectInput8Create(
return res;
}
api_proxy = com_proxy_wrap(api, sizeof(*api->lpVtbl));
res = com_proxy_wrap(&api_proxy, api, sizeof(*api->lpVtbl));
if (res != S_OK) {
log_warning("Wrapping com proxy failed: %08lx", res);
return res;
}
api_vtbl = api_proxy->vptr;
api_vtbl->EnumDevices = my_EnumDevices;