{
PDRVFN drv_func;
- ULONG peng_funcs;
- PULONG peng_func;
-
+ PFN *peng_funcs;
UINT i;
/* Test see if the data is vaild we got from win32k.sys */
* and if it really are exported
*/
- peng_funcs = (ULONG)&gpEngFuncs;
+ peng_funcs = (PFN*)&gpEngFuncs;
- for (i=1 ; i < DXENG_INDEX_DxEngLoadImage + 1; i++)
+ for (i = 1; i < DXENG_INDEX_DxEngLoadImage + 1; i++)
{
drv_func = &pDxEngDrv->pdrvfn[i];
{
return STATUS_INTERNAL_ERROR;
}
- peng_func = (PULONG)(peng_funcs+(i * sizeof(ULONG)));
- *peng_func = (ULONG)drv_func->pfn;
+
+ peng_funcs[i] = drv_func->pfn;
}
/* Note 12/1-2004 : Why is this set to 0x618 */