mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 20:50:02 +00:00
user32: Correctly fill the RAWINPUT structure on WoW64.
This changes the offset of the wParam field.
This commit is contained in:
parent
ac5f064521
commit
12e3c4949f
|
@ -646,12 +646,20 @@ UINT WINAPI GetRawInputData(HRAWINPUT rawinput, UINT command, void *data, UINT *
|
|||
}
|
||||
|
||||
#ifdef _WIN64
|
||||
typedef RAWINPUTHEADER RAWINPUTHEADER64;
|
||||
typedef RAWINPUT RAWINPUT64;
|
||||
#else
|
||||
typedef struct
|
||||
{
|
||||
RAWINPUTHEADER header;
|
||||
char pad[8];
|
||||
DWORD dwType;
|
||||
DWORD dwSize;
|
||||
ULONGLONG hDevice;
|
||||
ULONGLONG wParam;
|
||||
} RAWINPUTHEADER64;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
RAWINPUTHEADER64 header;
|
||||
union {
|
||||
RAWMOUSE mouse;
|
||||
RAWKEYBOARD keyboard;
|
||||
|
|
Loading…
Reference in a new issue