[Wine-patches] [eterhack] ntoskrnl.exe: Fix problem with IOCTL handler which returns STATUS_MORE_ENTRIES.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пн Фев 2 11:56:29 MSK 2009


eterbug #2581
----------- следующая часть -----------
From e2869eabdf73a2f0b9a7a4d45de65068d8340322 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Mon, 2 Feb 2009 11:31:35 +0300
Subject: [PATCH] ntoskrnl.exe: Fix problem with IOCTL handler which returns STATUS_MORE_ENTRIES.

---
 dlls/ntoskrnl.exe/ntoskrnl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index e492a7e..4ef2e75 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -415,7 +415,7 @@ static NTSTATUS process_ioctl( DEVICE_OBJECT *device, ULONG code, void *in_buff,
         NtWriteVirtualMemory( process, saved_ptr, data, sizeof(data), NULL );
         CloseHandle( process );
     }
-    *out_size = (status == STATUS_SUCCESS) ? iosb.Information : 0;
+    *out_size = (status >= 0) ? iosb.Information : 0;
     return status;
 }
 
@@ -1639,7 +1639,7 @@ void CDECL wine_complete_request( IRP *irp, UCHAR priority_boost )
                 return;
         }
     }
-    if (iosb && STATUS_SUCCESS == status)
+    if (iosb && status >= 0)
     {
         iosb->u.Status = irp->IoStatus.u.Status;
         iosb->Information = irp->IoStatus.Information;
-- 
1.6.0.2.GIT



Подробная информация о списке рассылки Wine-patches