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/nt…
==============================================================================
--- 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");
Author: fireball
Date: Thu May 1 14:44:30 2008
New Revision: 33223
URL: http://svn.reactos.org/svn/reactos?rev=33223&view=rev
Log:
- Remove incorrect check introduced in r33221 since Windows does not do it (try to call it on your Windows 2003 installation, and see results).
Modified:
trunk/reactos/ntoskrnl/io/iomgr/irp.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/irp.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/irp.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/irp.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/irp.c [iso-8859-1] Thu May 1 14:44:30 2008
@@ -1,3 +1,4 @@
+
/*
* PROJECT: ReactOS Kernel
* LICENSE: GPL - See COPYING in the top level directory
@@ -620,9 +621,6 @@
{
PIRP Irp;
PIO_STACK_LOCATION StackPtr;
-
- /* Check if DeviceObject is NULL dxg.sys will send in NULL if we got a PCI graphic card */
- if (DeviceObject == NULL) return NULL;
/* Allocate IRP */
Irp = IoAllocateIrp(DeviceObject->StackSize, FALSE);
Author: greatlrd
Date: Thu May 1 14:33:18 2008
New Revision: 33222
URL: http://svn.reactos.org/svn/reactos?rev=33222&view=rev
Log:
remove some debug data that was double. it is not longer need it
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c [iso-8859-1] Thu May 1 14:33:18 2008
@@ -69,10 +69,6 @@
DPRINT1(" end call to pfnDdEnableDirectDraw \n ");
}
- /* FIXME : remove this when we are done with debuging of dxg */
- dump_edd_directdraw_global(pEddgbl);
- dump_halinfo(&pEddgbl->ddHalInfo);
-
DPRINT1("Return value : 0x%08x\n",success);
return success;
}