dinput: Change internal check_dinput_hooks method to take W iface.
This commit is contained in:
parent
399be3455a
commit
9594be7f79
|
@ -590,7 +590,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_Acquire(LPDIRECTINPUTDEVICE8A iface)
|
|||
if (res == DI_OK)
|
||||
{
|
||||
This->queue_head = This->queue_tail = This->overflow = 0;
|
||||
check_dinput_hooks(iface);
|
||||
check_dinput_hooks((LPDIRECTINPUTDEVICE8W)iface);
|
||||
}
|
||||
LeaveCriticalSection(&This->crit);
|
||||
|
||||
|
@ -610,7 +610,7 @@ HRESULT WINAPI IDirectInputDevice2AImpl_Unacquire(LPDIRECTINPUTDEVICE8A iface)
|
|||
res = !This->acquired ? DI_NOEFFECT : DI_OK;
|
||||
This->acquired = 0;
|
||||
if (res == DI_OK)
|
||||
check_dinput_hooks(iface);
|
||||
check_dinput_hooks((LPDIRECTINPUTDEVICE8W)iface);
|
||||
LeaveCriticalSection(&This->crit);
|
||||
|
||||
return res;
|
||||
|
|
|
@ -1093,7 +1093,7 @@ static BOOL check_hook_thread(void)
|
|||
return hook_thread_id != 0;
|
||||
}
|
||||
|
||||
void check_dinput_hooks(LPDIRECTINPUTDEVICE8A iface)
|
||||
void check_dinput_hooks(LPDIRECTINPUTDEVICE8W iface)
|
||||
{
|
||||
static HHOOK callwndproc_hook;
|
||||
static ULONG foreground_cnt;
|
||||
|
|
|
@ -60,7 +60,7 @@ extern const struct dinput_device joystick_linux_device;
|
|||
extern const struct dinput_device joystick_linuxinput_device;
|
||||
extern const struct dinput_device joystick_osx_device;
|
||||
|
||||
extern void check_dinput_hooks(LPDIRECTINPUTDEVICE8A);
|
||||
extern void check_dinput_hooks(LPDIRECTINPUTDEVICE8W);
|
||||
typedef int (*DI_EVENT_PROC)(LPDIRECTINPUTDEVICE8A, WPARAM, LPARAM);
|
||||
|
||||
extern void _dump_diactionformatA(LPDIACTIONFORMATA);
|
||||
|
|
Loading…
Reference in New Issue