dinput: Change internal check_dinput_hooks method to take W iface.

This commit is contained in:
Vitaliy Margolen 2011-01-09 15:43:52 -07:00 committed by Alexandre Julliard
parent 399be3455a
commit 9594be7f79
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);