the address of gpDxFuncs will always evaluate as true

svn path=/trunk/; revision=32008
This commit is contained in:
Christoph von Wittich 2008-01-26 10:10:43 +00:00
parent 4b0245fc44
commit 48598dcb2b

View file

@ -109,16 +109,13 @@ typedef BOOL (NTAPI *PGD_ENGUNLOCKDIRECTDRAWSURFACE)(PDD_SURFACE_LOCAL);
/* Standard macro */
#define DXG_GET_INDEX_FUNCTION(INDEX, FUNCTION) \
if (gpDxFuncs) \
for (i = 0; i <= DXG_INDEX_DxDdIoctl; i++) \
{ \
for (i = 0; i <= DXG_INDEX_DxDdIoctl; i++) \
if (gpDxFuncs[i].iFunc == INDEX) \
{ \
if (gpDxFuncs[i].iFunc == INDEX) \
{ \
FUNCTION = (VOID *)gpDxFuncs[i].pfn; \
break; \
} \
} \
FUNCTION = (VOID *)gpDxFuncs[i].pfn; \
break; \
} \
}
/* Gammaramp internal prototype */