Module: wine Branch: master Commit: 647e20a9ff24216e61dcb9e9ee8c9ff73da812dd URL: https://gitlab.winehq.org/wine/wine/-/commit/647e20a9ff24216e61dcb9e9ee8c9ff...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Mar 6 13:11:59 2023 +0100
win32u: Initialize IO_STATUS_BLOCK in rawinput add_device.
To avoid invalid writes on WOW64 Nt calls.
---
dlls/win32u/rawinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/win32u/rawinput.c b/dlls/win32u/rawinput.c index 1ddbca0896a..bd2e00a31c4 100644 --- a/dlls/win32u/rawinput.c +++ b/dlls/win32u/rawinput.c @@ -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}; struct hid_preparsed_data *preparsed = NULL; HID_COLLECTION_INFORMATION hid_info; + IO_STATUS_BLOCK io = {{0}}; OBJECT_ATTRIBUTES attr; UNICODE_STRING string; struct device *device; RID_DEVICE_INFO info; - IO_STATUS_BLOCK io; unsigned int status; UINT32 handle; void *buffer;