From fb4488df013d1bdebcac4ffb33207a32f165d35d Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Mon, 2 Feb 2004 18:21:32 +0000 Subject: [PATCH] warning fix ( casting issue ) svn path=/trunk/; revision=7998 --- reactos/lib/opengl32/opengl32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/opengl32/opengl32.c b/reactos/lib/opengl32/opengl32.c index 33ed831b687..ee70d5cba7e 100644 --- a/reactos/lib/opengl32/opengl32.c +++ b/reactos/lib/opengl32/opengl32.c @@ -1,4 +1,4 @@ -/* $Id: opengl32.c,v 1.6 2004/02/02 17:59:23 navaraf Exp $ +/* $Id: opengl32.c,v 1.7 2004/02/02 18:21:32 royce Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -282,7 +282,7 @@ static GLDRIVERDATA *OPENGL32_LoadDriver ( LPCWSTR driver ) * RETURNS: error code; ERROR_SUCCESS on success */ #define LOAD_DRV_PROC( icd, proc, required ) \ - icd->proc = GetProcAddress( icd->handle, #proc ); \ + *(char**)&(icd->proc) = (char*)GetProcAddress( icd->handle, #proc ); \ if (required && !icd->proc) { \ DBGPRINT( "Error: GetProcAddress(\"%s\") failed!", #proc ); \ return GetLastError(); \