minor bugfixes

This commit is contained in:
Will Xyen
2020-09-12 07:53:00 -07:00
parent 65979f0206
commit addcb25242
4 changed files with 10 additions and 2 deletions
+7 -1
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;