Commit in reactos/subsys/win32k/eng on MAIN
device.c+7-21.12 -> 1.13

- Return any error code from the miniport device i/o control to the display
driver. Fixes crash when running with ati drivers.

reactos/subsys/win32k/eng
device.c 1.12 -> 1.13
diff -u -r1.12 -r1.13
--- device.c	5 Nov 2003 22:46:05 -0000	1.12
+++ device.c	11 Mar 2004 23:07:16 -0000	1.13
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: device.c,v 1.12 2003/11/05 22:46:05 gvg Exp $
+/* $Id: device.c,v 1.13 2004/03/11 23:07:16 dwelch Exp $
  * 
  * COPYRIGHT:         See COPYING in the top level directory
  * PROJECT:           ReactOS kernel
@@ -71,7 +71,12 @@
       (void) KeWaitForSingleObject(&Event, Executive, KernelMode, TRUE, 0);
     }
 
-  return (Status);
+  DPRINT("EngDeviceIoControl(): Returning %X/%X\n", Iosb.Status,
+	 Iosb.Information);
+
+  /* Return information to the caller about the operation. */
+  *lpBytesReturned = Iosb.Information;
+  return Iosb.Status;
 }
 
 /* EOF */
CVSspam 0.2.8