From de56626b62f4d6a9beee0589a45bc55bfcf9973e Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Tue, 3 Jun 2014 18:22:01 +0200 Subject: C99 compliant function pointer casting --- test/layered.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/layered.c') diff --git a/test/layered.c b/test/layered.c index 80f25cf..f28c677 100644 --- a/test/layered.c +++ b/test/layered.c @@ -304,12 +304,10 @@ int main(int argc, char *argv[]) if( 6 <= os_vinfo.dwMajorVersion ) { hDwmAPI_DLL = LoadLibrary("dwmapi.dll"); if( hDwmAPI_DLL ) { - impl_DwmEnableBlurBehindWindow = - (procp_DwmEnableBlurBehindWindow) + *(PROC*)(&impl_DwmEnableBlurBehindWindow) = GetProcAddress(hDwmAPI_DLL, "DwmEnableBlurBehindWindow"); - impl_DwmExtendFrameIntoClientArea = - (procp_DwmExtendFrameIntoClientArea) + *(PROC*)(&impl_DwmExtendFrameIntoClientArea) = GetProcAddress(hDwmAPI_DLL, "DwmExtendFrameIntoClientArea"); } } -- cgit v1.2.3