aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2014-06-03 18:22:01 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2014-06-03 18:22:01 +0200
commitde56626b62f4d6a9beee0589a45bc55bfcf9973e (patch)
tree314f53b7e80e879db6227b494c805c9e94f940b8
parent8fd64d5e3783607ce31e89c7f4db78528dbe17fa (diff)
downloadwglarb-de56626b62f4d6a9beee0589a45bc55bfcf9973e.tar.gz
wglarb-de56626b62f4d6a9beee0589a45bc55bfcf9973e.tar.bz2
C99 compliant function pointer casting
-rw-r--r--test/layered.c6
1 files changed, 2 insertions, 4 deletions
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");
}
}