Rémi Bernon : hidclass.sys: Rename IO_STATUS_BLOCK irp_status to io.

Alexandre Julliard julliard at winehq.org
Thu Aug 5 16:13:39 CDT 2021


Module: wine
Branch: master
Commit: 88bc48fbac52e5f6c20f1ed0c57ce597baa0dacb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=88bc48fbac52e5f6c20f1ed0c57ce597baa0dacb

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Thu Aug  5 10:36:04 2021 +0200

hidclass.sys: Rename IO_STATUS_BLOCK irp_status to io.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/hidclass.sys/device.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/dlls/hidclass.sys/device.c b/dlls/hidclass.sys/device.c
index ab449b9b0d9..f1b0083fffd 100644
--- a/dlls/hidclass.sys/device.c
+++ b/dlls/hidclass.sys/device.c
@@ -177,9 +177,8 @@ static void HID_Device_processQueue(DEVICE_OBJECT *device)
 static DWORD CALLBACK hid_device_thread(void *args)
 {
     DEVICE_OBJECT *device = (DEVICE_OBJECT*)args;
-
-    IO_STATUS_BLOCK irp_status;
     HID_XFER_PACKET *packet;
+    IO_STATUS_BLOCK io;
     DWORD rc;
 
     BASE_DEVICE_EXTENSION *ext = device->DeviceExtension;
@@ -196,9 +195,9 @@ static DWORD CALLBACK hid_device_thread(void *args)
             packet->reportId = 0;
 
             call_minidriver( IOCTL_HID_GET_INPUT_REPORT, ext->u.pdo.parent_fdo, NULL, 0, packet,
-                             sizeof(*packet), &irp_status );
+                             sizeof(*packet), &io );
 
-            if (irp_status.Status == STATUS_SUCCESS)
+            if (io.Status == STATUS_SUCCESS)
             {
                 RingBuffer_Write(ext->u.pdo.ring_buffer, packet);
                 hid_device_send_input(device, packet);
@@ -221,15 +220,15 @@ static DWORD CALLBACK hid_device_thread(void *args)
         while(1)
         {
             call_minidriver( IOCTL_HID_READ_REPORT, ext->u.pdo.parent_fdo, NULL, 0,
-                             packet->reportBuffer, report_size, &irp_status );
+                             packet->reportBuffer, report_size, &io );
 
             rc = WaitForSingleObject(ext->u.pdo.halt_event, 0);
             if (rc == WAIT_OBJECT_0)
                 exit_now = TRUE;
 
-            if (!exit_now && irp_status.Status == STATUS_SUCCESS)
+            if (!exit_now && io.Status == STATUS_SUCCESS)
             {
-                packet->reportBufferLen = irp_status.Information;
+                packet->reportBufferLen = io.Information;
                 if (ext->u.pdo.preparsed_data->reports[0].reportID)
                     packet->reportId = packet->reportBuffer[0];
                 else




More information about the wine-cvs mailing list