Author: cwittich
Date: Sat Jan 26 13:10:43 2008
New Revision: 32008
URL:
http://svn.reactos.org/svn/reactos?rev=32008&view=rev
Log:
the address of gpDxFuncs will always evaluate as true
Modified:
trunk/reactos/subsystems/win32/win32k/include/intddraw.h
Modified: trunk/reactos/subsystems/win32/win32k/include/intddraw.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/intddraw.h (original)
+++ trunk/reactos/subsystems/win32/win32k/include/intddraw.h Sat Jan 26 13:10:43 2008
@@ -109,16 +109,13 @@
/* 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 */