[ros-diffs] [navaraf] 20035: Until the kernel handle support is finished or bootvid support is rewritten not to use driver objects open & close the handle every time (in the correct context).

navaraf at svn.reactos.com navaraf at svn.reactos.com
Sat Dec 10 15:36:43 CET 2005


Until the kernel handle support is finished or bootvid support is
rewritten not to use driver objects open & close the handle every time
(in the correct context).
Modified: trunk/reactos/ntoskrnl/inbv/inbv.c
  _____  

Modified: trunk/reactos/ntoskrnl/inbv/inbv.c
--- trunk/reactos/ntoskrnl/inbv/inbv.c	2005-12-10 13:50:36 UTC (rev
20034)
+++ trunk/reactos/ntoskrnl/inbv/inbv.c	2005-12-10 14:36:39 UTC (rev
20035)
@@ -119,7 +119,7 @@

       /* Notify the hal we will acquire the display. */
       HalAcquireDisplayOwnership(InbvResetDisplayParameters);
 
-      Status = NtDeviceIoControlFile(BootVidDevice,
+      Status = ZwDeviceIoControlFile(BootVidDevice,
 				     NULL,
 				     NULL,
 				     NULL,
@@ -138,7 +138,7 @@
     }
   else
     {
-      Status = NtDeviceIoControlFile(BootVidDevice,
+      Status = ZwDeviceIoControlFile(BootVidDevice,
 				     NULL,
 				     NULL,
 				     NULL,
@@ -155,10 +155,10 @@
       BootVidDriverInstalled = FALSE;
       /* Notify the hal we have released the display. */
       HalReleaseDisplayOwnership();
+    }
 
-      NtClose(BootVidDevice);
-      BootVidDevice = NULL;
-    }
+  ZwClose(BootVidDevice);
+  BootVidDevice = NULL;
 }
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051210/1346e359/attachment.html


More information about the Ros-diffs mailing list