imagelist test: Fix an MSVC compilation issue

Francois Gouget fgouget at free.fr
Tue Aug 31 11:11:31 CDT 2004


Changelog:

 * dlls/comctl32/tests/imagelist.c

   MSVC does not like the typeof() in the function pointer declaration.
   Fix a warning.

-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                  Hiroshima '45 - Czernobyl '86 - Windows '95
-------------- next part --------------
Index: dlls/comctl32/tests/imagelist.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/tests/imagelist.c,v
retrieving revision 1.3
diff -u -r1.3 imagelist.c
--- dlls/comctl32/tests/imagelist.c	26 Aug 2004 18:22:31 -0000	1.3
+++ dlls/comctl32/tests/imagelist.c	31 Aug 2004 14:42:00 -0000
@@ -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 @@
     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");


More information about the wine-patches mailing list