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,8 +109,6 @@ typedef BOOL (NTAPI *PGD_ENGUNLOCKDIRECTDRAWSURFACE)(PDD_SURFACE_LOCAL);
/* Standard macro */ /* Standard macro */
#define DXG_GET_INDEX_FUNCTION(INDEX, FUNCTION) \ #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) \
@ -118,7 +116,6 @@ typedef BOOL (NTAPI *PGD_ENGUNLOCKDIRECTDRAWSURFACE)(PDD_SURFACE_LOCAL);
FUNCTION = (VOID *)gpDxFuncs[i].pfn; \ FUNCTION = (VOID *)gpDxFuncs[i].pfn; \
break; \ break; \
} \ } \
} \
} }
/* Gammaramp internal prototype */ /* Gammaramp internal prototype */