Author: greatlrd Date: Thu May 1 04:24:53 2008 New Revision: 33206
URL: http://svn.reactos.org/svn/reactos?rev=33206&view=rev Log: Fixed a smaller bug in intEnableReactXDriver it was not the drv hPDev that was the frist param it was hdev aka pDC->pPDev now we see value getting fill in to edd_DdirectDraw_Global from pfnDdEnableDirectDraw fucntion in ms dxg.sys
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/ntd... ============================================================================== --- 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 04:24:53 2008 @@ -40,6 +40,9 @@ /*clean up some of the cache entry */ RtlZeroMemory(pEddgbl,sizeof(EDD_DIRECTDRAW_GLOBAL));
+ /* setup EDD_DIRECTDRAW_GLOBAL for pDev xp */ + pDev->pEDDgpl = pEddgbl; + if (pfnDdEnableDirectDraw == NULL) { DPRINT1("Warning: no pfnDdEnableDirectDraw\n"); @@ -47,7 +50,10 @@ else { DPRINT1(" call to pfnDdEnableDirectDraw \n "); - success = pfnDdEnableDirectDraw(pDC->PDev, TRUE); + /* Note it is the hdev struct it want, not the drv hPDev aka pdc->PDev */ + success = pfnDdEnableDirectDraw(pDC->pPDev, TRUE); + + dump_edd_directdraw_global(pEddgbl); DPRINT1(" end call to pfnDdEnableDirectDraw \n "); }
@@ -55,8 +61,6 @@ edd_DdirectDraw_Global.hDev = pDC->pPDev; /*FIXME : edd_DdirectDraw_Global.dhpdev = (PVOID)pDC->PDev; */
- /* setup EDD_DIRECTDRAW_GLOBAL for pDev xp */ - pDev->pEDDgpl = pEddgbl;
/* test see if drv got a dx interface or not */ if ( ( pDev->DriverFunctions.DisableDirectDraw == NULL) ||