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

Fix a warning.
This commit is contained in:
Francois Gouget 2004-08-31 17:32:43 +00:00 committed by Alexandre Julliard
parent 91562d5b22
commit d661e1a2a9
1 changed files with 2 additions and 2 deletions

View File

@ -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");