[ros-diffs] [greatlrd] 33225: Thx fireball to found the real issue with dxg.sys why the hell it did send down NULL we need the graphic drv DeviceObject be sent in, it is known as PDev->hSpooler in windows reactos win32k does not set it up yet so we using reactos version of it it call PDev->VideoFileObject->DeviceObject.

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Thu May 1 23:00:55 CEST 2008


Author: greatlrd
Date: Thu May  1 16:00:54 2008
New Revision: 33225

URL: http://svn.reactos.org/svn/reactos?rev=33225&view=rev
Log:
Thx fireball to found the real issue with dxg.sys why the hell it did send down NULL 
we need the graphic drv DeviceObject be sent in, it is known as PDev->hSpooler in windows
reactos win32k does not set it up yet so we using reactos version of it 
it call PDev->VideoFileObject->DeviceObject.

Modified:
    trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c

Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c?rev=33225&r1=33224&r2=33225&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c [iso-8859-1] Thu May  1 16:00:54 2008
@@ -309,7 +309,8 @@
         break;
       case DxEGShDevData_hSpooler:
         DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_hSpooler\n");
-        retVal = (DWORD_PTR) PDev->hSpooler; // If the device is a spooler driver.
+         // retVal = (DWORD_PTR) PDev->hSpooler; // If the device is a spooler driver.
+        retVal = (DWORD_PTR) PDev->VideoFileObject->DeviceObject;
         break;
       case DxEGShDevData_DitherFmt:
         DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_DitherFmt\n");



More information about the Ros-diffs mailing list