mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 09:52:56 +00:00
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 svn path=/trunk/; revision=33206
This commit is contained in:
parent
8c875b905d
commit
5e70dd89f7
1 changed files with 7 additions and 3 deletions
|
@ -40,6 +40,9 @@ intEnableReactXDriver(PEDD_DIRECTDRAW_GLOBAL pEddgbl, PDC pDC)
|
||||||
/*clean up some of the cache entry */
|
/*clean up some of the cache entry */
|
||||||
RtlZeroMemory(pEddgbl,sizeof(EDD_DIRECTDRAW_GLOBAL));
|
RtlZeroMemory(pEddgbl,sizeof(EDD_DIRECTDRAW_GLOBAL));
|
||||||
|
|
||||||
|
/* setup EDD_DIRECTDRAW_GLOBAL for pDev xp */
|
||||||
|
pDev->pEDDgpl = pEddgbl;
|
||||||
|
|
||||||
if (pfnDdEnableDirectDraw == NULL)
|
if (pfnDdEnableDirectDraw == NULL)
|
||||||
{
|
{
|
||||||
DPRINT1("Warning: no pfnDdEnableDirectDraw\n");
|
DPRINT1("Warning: no pfnDdEnableDirectDraw\n");
|
||||||
|
@ -47,7 +50,10 @@ intEnableReactXDriver(PEDD_DIRECTDRAW_GLOBAL pEddgbl, PDC pDC)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DPRINT1(" call to pfnDdEnableDirectDraw \n ");
|
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 ");
|
DPRINT1(" end call to pfnDdEnableDirectDraw \n ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,8 +61,6 @@ intEnableReactXDriver(PEDD_DIRECTDRAW_GLOBAL pEddgbl, PDC pDC)
|
||||||
edd_DdirectDraw_Global.hDev = pDC->pPDev;
|
edd_DdirectDraw_Global.hDev = pDC->pPDev;
|
||||||
/*FIXME : edd_DdirectDraw_Global.dhpdev = (PVOID)pDC->PDev; */
|
/*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 */
|
/* test see if drv got a dx interface or not */
|
||||||
if ( ( pDev->DriverFunctions.DisableDirectDraw == NULL) ||
|
if ( ( pDev->DriverFunctions.DisableDirectDraw == NULL) ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue