https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2620930066713461f9e922...
commit 2620930066713461f9e9225febc17a29d4ae9933 Author: Timo Kreuzer timo.kreuzer@reactos.org AuthorDate: Sun Jan 6 23:41:52 2019 +0100 Commit: Timo Kreuzer timo.kreuzer@reactos.org CommitDate: Mon Mar 4 21:58:42 2019 +0100
[DXG] Fix 64 bit build --- win32ss/reactx/dxg/main.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/win32ss/reactx/dxg/main.c b/win32ss/reactx/dxg/main.c index cba89cb604..7bcd329b9e 100644 --- a/win32ss/reactx/dxg/main.c +++ b/win32ss/reactx/dxg/main.c @@ -40,9 +40,7 @@ DxDdStartupDxGraphics (ULONG SizeEngDrv, {
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 */ @@ -75,9 +73,9 @@ DxDdStartupDxGraphics (ULONG SizeEngDrv, * 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];
@@ -86,8 +84,8 @@ DxDdStartupDxGraphics (ULONG SizeEngDrv, { 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 */