mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 05:29:51 +00:00
win32u: Initialize IO_STATUS_BLOCK in rawinput add_device.
To avoid invalid writes on WOW64 Nt calls.
This commit is contained in:
parent
ec5d9f6413
commit
647e20a9ff
|
@ -218,11 +218,11 @@ static struct device *add_device( HKEY key, DWORD type )
|
||||||
static const RID_DEVICE_INFO_MOUSE mouse_info = {1, 5, 0, FALSE};
|
static const RID_DEVICE_INFO_MOUSE mouse_info = {1, 5, 0, FALSE};
|
||||||
struct hid_preparsed_data *preparsed = NULL;
|
struct hid_preparsed_data *preparsed = NULL;
|
||||||
HID_COLLECTION_INFORMATION hid_info;
|
HID_COLLECTION_INFORMATION hid_info;
|
||||||
|
IO_STATUS_BLOCK io = {{0}};
|
||||||
OBJECT_ATTRIBUTES attr;
|
OBJECT_ATTRIBUTES attr;
|
||||||
UNICODE_STRING string;
|
UNICODE_STRING string;
|
||||||
struct device *device;
|
struct device *device;
|
||||||
RID_DEVICE_INFO info;
|
RID_DEVICE_INFO info;
|
||||||
IO_STATUS_BLOCK io;
|
|
||||||
unsigned int status;
|
unsigned int status;
|
||||||
UINT32 handle;
|
UINT32 handle;
|
||||||
void *buffer;
|
void *buffer;
|
||||||
|
|
Loading…
Reference in a new issue