From d661e1a2a9fabf1beacfadcde02ac92185c59c3d Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 31 Aug 2004 17:32:43 +0000 Subject: [PATCH] MSVC does not like the typeof() in the function pointer declaration. Fix a warning. --- dlls/comctl32/tests/imagelist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/tests/imagelist.c b/dlls/comctl32/tests/imagelist.c index 11436efc733..46c30912bb8 100644 --- a/dlls/comctl32/tests/imagelist.c +++ b/dlls/comctl32/tests/imagelist.c @@ -24,7 +24,7 @@ #include "wine/test.h" -static typeof(ImageList_DrawIndirect) * pImageList_DrawIndirect = NULL; +static BOOL (WINAPI *pImageList_DrawIndirect)(IMAGELISTDRAWPARAMS*) = NULL; static HDC desktopDC; @@ -238,7 +238,7 @@ static BOOL DoTest3(void) if (!pImageList_DrawIndirect) { HMODULE hComCtl32 = LoadLibraryA("comctl32.dll"); - pImageList_DrawIndirect = GetProcAddress(hComCtl32, "ImageList_DrawIndirect"); + pImageList_DrawIndirect = (void*)GetProcAddress(hComCtl32, "ImageList_DrawIndirect"); if (!pImageList_DrawIndirect) { trace("ImageList_DrawIndirect not available, skipping test\n");