re adding a small hack for edd_directdraw_globalk getting clear out some where in win32k. we need track down this bug.

svn path=/trunk/; revision=33245
This commit is contained in:
Magnus Olsen
2008-05-02 19:42:38 +00:00
parent e116f0e2e4
commit 21767c48f6
2 changed files with 4 additions and 1 deletions

View File

@@ -66,6 +66,9 @@ intEnableReactXDriver(HDC hdc)
}
else
{
/* FIXME HACK : some how pEDDgpl got zero out */
pDev->pEDDgpl = (PVOID)&edd_DdirectDraw_Global;
/* FIXME : proper check see if it been disable */
if (pDev->pEDDgpl->dhpdev == 0)
{

View File

@@ -553,7 +553,7 @@ IntPrepareDriver()
PrimarySurface.ppdevNext = NULL; // Fixme! We need to support more than display drvs.
PrimarySurface.ppdevParent = NULL; // Always NULL if primary.
PrimarySurface.pGraphicsDev = NULL; // Fixme!
PrimarySurface.pEDDgpl = &edd_DdirectDraw_Global; // FIXME! We need to support more than display drvs.
PrimarySurface.pEDDgpl = (PVOID)&edd_DdirectDraw_Global; // FIXME! We need to support more than display drvs.
RtlZeroMemory( &edd_DdirectDraw_Global ,sizeof(EDD_DIRECTDRAW_GLOBAL));
ret = TRUE;
goto cleanup;