From 36d10c88cdc72fba877ce670d703b2b601fecdac Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 9 Mar 1999 17:36:55 +0000 Subject: [PATCH] Corrected cast so hello5 compiles again. --- libtest/hello5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtest/hello5.c b/libtest/hello5.c index 2dc6e6d783f..72daade5278 100644 --- a/libtest/hello5.c +++ b/libtest/hello5.c @@ -1,8 +1,8 @@ /* * This example demonstrates dynamical loading of (internal) Win32 DLLS. */ -#include #include +#include int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) { @@ -15,7 +15,7 @@ int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show) fprintf(stderr,"FATAL: could not load KERNEL32!\n"); return 0; } - fnGetSystemInfo = (void (CALLBACK*)(LPSYSTEM_INFO))GetProcAddress(kernel32,"GetSystemInfo"); + fnGetSystemInfo = (void*)GetProcAddress(kernel32,"GetSystemInfo"); if (!fnGetSystemInfo) { fprintf(stderr,"FATAL: could not find GetSystemInfo!\n"); return 0;