mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 05:46:19 +00:00
the address of gpDxFuncs will always evaluate as true
svn path=/trunk/; revision=32008
This commit is contained in:
parent
4b0245fc44
commit
48598dcb2b
|
@ -109,16 +109,13 @@ 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) \
|
FUNCTION = (VOID *)gpDxFuncs[i].pfn; \
|
||||||
{ \
|
break; \
|
||||||
FUNCTION = (VOID *)gpDxFuncs[i].pfn; \
|
} \
|
||||||
break; \
|
|
||||||
} \
|
|
||||||
} \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Gammaramp internal prototype */
|
/* Gammaramp internal prototype */
|
||||||
|
|
Loading…
Reference in a new issue