1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-02-17 19:19:16 +01:00

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

@ -36,6 +36,7 @@ enum ac_io_node_type {
AC_IO_NODE_TYPE_LED_SPIKE = 0x05010000,
AC_IO_NODE_TYPE_KFCA = 0x09060000,
AC_IO_NODE_TYPE_BI2A = 0x0d060000,
AC_IO_NODE_TYPE_RVOL = 0x09060001,
};
#pragma pack(push, 1)

View File

@ -166,6 +166,7 @@ static int aciodrv_device_receive(uint8_t *buffer, int size)
#ifdef AC_IO_MSG_LOG
aciodrv_device_log_buffer("Recv (1)", recv_buf, recv_size);
log_warning("Expected %d got %d", recv_buf[4], recv_size - 6);
#endif
/* recv_size - 1: omit checksum for checksum calc */

View File

@ -99,7 +99,7 @@ static bool get_device_by_filter(
if (DeviceRegKey) {
bool found = false;
log_info("Found a serial device at index: %d", idx);
log_info("Found a serial device at index: %ld", idx);
if (!id_filter) {
if (check_property(DeviceInfoSet, &DeviceInfoData, property)) {

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;